tags:

views:

43

answers:

1

hi all,

i'm having 2 dialogs in my web - when setting their property autoOpen:true they both show. but when setting autoOpen:false (and open them manually) - only one dialog opens :( with the other one, nothing happens at all (no error in firebug). any idea what it could be? it can't be the dialog content, as i defined just some simple debug text.


div.dialog({ 
   autoOpen:false, 
   bgiframe: false, 
   resizable: true, 
   width:wi, 
   minHeight:0, 
   height:he, 
   modal: true, 
   title: div.attr("caption"), 
   overlay: { backgroundColor: '#ffffff', opacity: 0.8 } 
});
+1  A: 

div is probably not the right identifier for jQuery.

Change div.dialog(...) to $("#mydialog").dialog(...)

where the div containing the dialog is:

<div id="mydialog">put dialog content here.</div>
ZippyV
tempted to -1. If the div variable would be the problem, his code wouldn't work at all. I am almost sure that div is some variable which holds a jQuery object enclosing his DOM div element
jitter
Hence the word probably.
ZippyV