your dialog options need tuning$("#dialogue").dialog( { AutoOpen: false, /// should be autoOpen bgiframe: true, height: 400, width: 300, maxHeight: 10, /// 10?? maxWidth: 10, // 10? modal: true, resizable: true, buttons: { "Ok": function() { $(this).dialog("close"); } } }); fredriley wrote: Thanks for the reply, Charlie. Sorry I've not got back on it until now.On Jun 11, 10:32 pm, Charlie <charlie...@gmail.com> wrote:try taking the dialog constructor out of the click functions maybe load is firing before the dialog call is complete this seems to be the norm, not trying to build it inside a clickGood thought, doesn't seem to make much difference, though. I've changed the script in http://www.nottingham.ac.uk/~ntzfr/test/ajax/jquery/jqueryui_dialogue_test1.html so that the constructor goes in the 'document ready' block. Now the dialogue appears on page load, despite the AutoOpen option being set to false, and the weirdness described in my initial message continues.also first link doesn't validate on w3 validator, always worth checking validation when DOM weirdness occursI hadn't thought of that. You're right, it didn't validate, but that was down to me using the string "<div>" in the text and comments. Removing the <> chars and rerunning the validator gave a clean bill of health. That's a useful tip, though, which I'll remember to try in future. Ok, no big, it's not that important and I can't spend any more time on this issue - I'll just have to continue using spawned popup windows. jQuery's a funny thing - the simplest things, like this, can take hours to implement, whereas tough things, like the UI tabbed interface, are wash 'n' go in a few tens of minutes. Ah well, I'll get my head around it one day ;) Cheers Fred |
- [jQuery] jQuery UI dialog not behaving fredriley
- [jQuery] Re: jQuery UI dialog not behaving Charlie
- [jQuery] Re: jQuery UI dialog not behaving fredriley
- [jQuery] Re: jQuery UI dialog not behaving Charlie
- [jQuery] Re: jQuery UI dialog not behaving fredriley