views:

146

answers:

1

as usual , interner explorer is causing trouble. I have a modal dialog, which is opened when a button is pressed. When the command is not triggered by the button, it all works just fine. When i have it triggered by the button, only the modal overlay appears, but not the actual dialog.

$('#orderbutton').click(function (){
       $('#dialog2').dialog('open');

       });

This code gives my just the overlay in IE.

   $('#dialog2').dialog('open');

works just fine.

The code works on firefox.

the code for the dialog is very simple

$('#dialog2').dialog(
                     {modal:true,
                     autoOpen:false}
                     );       
A: 

I couldn't reproduce the behavior you described. Could you post your HTML and perhaps more of your JS as well? Or even better, provide a link to somewhere where this is live?

BenWillkommen