Ticket #2544 (closed bug: invalid)
[ui-dialog] Problem when using JQuery with asp.net (ajax enabled)
| Reported by: | Nordes | Owned by: | rworth |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.2.4 |
| Component: | ui | Version: | 1.2.3 |
| Keywords: | dialog drag and drop bug. | Cc: | |
| Blocking: | Blocked by: |
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 )
);
}
}
});
Change History
comment:1 in reply to: ↑ description Changed 5 years ago by Nordes
comment:2 Changed 5 years ago by paul
- Owner changed from paul to rworth
- Summary changed from Problem when using JQuery with asp.net (ajax enabled) to [ui-dialog] Problem when using JQuery with asp.net (ajax enabled)
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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