Problems with Dialog in IE
Hi. I'm using JQuery 1.3 and JQuery UI 1.6r5. I'm trying to use a
dialog component to show some information. I'm creating in this way:
$(document).ready(function(){
......
$('#respuestasFlotantes').dialog({
autoOpen: false,
width: 700,
overlay: {
backgroundColor: '#000',
opacity: 0.2
},
modal: false
});
}
......
<div id="respuestasFlotantes" title="Test"></div>
Later, i make an Ajax call and the result is inserted in the dialog
and next opened like this:
...(setted with ajaxsetup)...
$.ajax({
data: $('#formConsulta').serialize(),
success: resPeriodoPresBenef
});
...
function resPeriodoPresBenef(texto,estado){
$('#respuestasFlotantes').html(texto);
$('#respuestasFlotantes').dialog('open');
}
But when i open the dialog with $('#respuestasFlotantes').dialog
('open'); throws an error of "Invalid argument" in the line 1050. I
checked the line with companionJS and is the jquery-1.3.js archive and
the line was the following:
attr: function( elem, name, value ) {
......
if ( set )
(1050) elem[ name ] = value;
I don't know if all of this is enought to know if is a bug or is my
mistake. But this problem only ocurrs in IE 6 or 7
I tried in Ffox 2 and 3, and works correctly. I hope someone can help
me. Thanks in advance.
Bye