Skip to main content

Search and Top Navigation

#2544 closed bug (notabug)

Opened March 18, 2008 05:28PM UTC

Closed May 29, 2008 05:11AM UTC

[ui-dialog] Problem when using JQuery with asp.net (ajax enabled)

Reported by: Nordes Owned by: rdworth
Priority: minor Milestone:
Component: ui.dialog Version: 1.5b4
Keywords: dialog drag and drop bug. Cc:
Blocked by: Blocking:
Description

When I have a scriptmanager inside my page and then I try to use the jquery ui, I have a conflict at the following block of code:

prop: function( elem, value, type, i, name ) {
		// Handle executable functions
		if ( jQuery.isFunction( value ) )
			value = value.call( elem, i );
			
		// Handle passing in a number to a CSS property
		return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ?
			value + "px" :
			value;
},

I actually create a dialog window dialog as following and when I drag that window or click on it I have an error:

$('#skillInfo').dialog({
	title: 'Add a new skill',
	draggable:true, 
	width: 640, 
	height: 480,
	autoOpen: false // do not open automatically the popup
});	

In firefox when i load the page and then open the popup every thing is fine, but when I open it in IE I have a conflict saying that the type is not valid.

(If you need a screenshot, i can send one)

Actually to make it work, I did a small fix as shown bellow, but maybe it should be fixed differently.

(approx line 186)

return this.each(function(i){
			// Set all the styles
			for ( name in options ){
				if (name != "localeFormat" && name != "format"){ // Quick fix to work with the asp.net atlas (ajax).
					jQuery.attr(
						type ?
							this.style :
							this,
						name, jQuery.prop( this, options[ name ], type, i, name )
					);
				}
			}
		});
Attachments (0)
Change History (6)

Changed March 18, 2008 05:30PM UTC by Nordes comment:1

The error message generated in javascript is the following:

value.call( elem, i ) Sys.ArgumentTypeException: Object of type 'Number' cannot be converted to type 'String'.

Parameter name: format Error

Changed March 19, 2008 01:15PM UTC by paul comment:2

owner: paulrworth
summary: Problem when using JQuery with asp.net (ajax enabled)[ui-dialog] Problem when using JQuery with asp.net (ajax enabled)

Changed May 04, 2008 08:54AM UTC by paul comment:3

priority: majorminor

Changed May 24, 2008 03:39AM UTC by comment:4

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed May 24, 2008 07:21PM UTC by paul comment:5

component: ui.coreui.dialog
version: 1.2.31.5b4

Changed May 29, 2008 05:11AM UTC by scottgonzalez comment:6

resolution: → invalid
status: newclosed

The code you proposed a change for is in core. Please create a new ticket in the core bugtracker.