Thanks Brandon, however when I added the autoOpen: false line it failed to open at all.
Thanks, Floyd On Dec 3, 6:01 pm, Brandon Ryall <[email protected]> wrote: > In your dialog try adding autoOpen: false and then pop your dialog open... > so your code would be modified to look like this: > > $(function() { > $("#mtd").click(function() { > $("#mtd_dialog").dialog({ > autoOpen: false, > bgiframe: true, > title: "Reports Search Paramaters", > height: 250, > width: 300, > modal: true, > buttons: { > "Cancel": function() { > $("iframe#mainFrame").attr(" > > > > > > > src","opening.html"); > > $(this).dialog("close"); > > > }, > > "See Report": function() { > > > $("iframe#mainFrame").attr("src","MTD_currentReport.php"); > > $(this).dialog("close"); > > > } > > } > > > }).dialog("open"); > > > }); > > }); > > ------------------------------------------------- > Brandon Ryall > Software Developer > eMaint Enterprises LLC > 438 N. Elmwood Road, Suite 201 > Marlton, NJ 08053 > P 856-810-2700 x7180 > F 253-323-6353 > > On Thu, Dec 3, 2009 at 4:22 PM, villageone <[email protected]> wrote: > > Hi, > > > I'm new to jquery, so I'm not sure if I've missed something. I have > > several click events, which open modal dialog windows. Each one works > > perfectly the first time I click them, but if I go back to click them > > again, they don't work. No errors are thrown, they just don't work. > > Any assistance would be greatly appreciated. > > > Floyd > > > This is the code of one, the others are similiar: > > > $(function() { > > $("#mtd").click(function() { > > $("#mtd_dialog").dialog({ > > bgiframe: true, > > title: "Reports Search Paramaters", > > height: 250, > > width: 300, > > modal: true, > > buttons: { > > "Cancel": function() { > > $("iframe#mainFrame").attr("src","opening.html"); > > $(this).dialog("close"); > > > }, > > "See Report": function() { > > > $("iframe#mainFrame").attr("src","MTD_currentReport.php"); > > $(this).dialog("close"); > > > } > > } > > > }); > > > }); > > }); > > > -- > > > You received this message because you are subscribed to the Google Groups > > "jQuery UI" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<jquery-ui%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/jquery-ui?hl=en. -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
