Jdialog and firefox

Jdialog and firefox

Hello,

I'm new in developing with jquery and I have a problem with the jdialog with firefox.

In fact the dialog when autoOpen is set to false when opened autoclose after an instant.

It works fine with IE

here's the code:

  1. <script type="text/javascript">
        $(function() {
           
            $("#dialog-modal").dialog({
                autoOpen: false,
                height: 140,
                modal: true
               
            });
            $('#cdi')
                .button()
                .click(function() {
                    $('#dialog-modal').dialog('open');
                });

        });


        </script>



















  2. <div id="dialog-modal" title="Basic modal dialog">
        <p>some text</p>
    </div>

    <button id="cdi">create dialog</button>



I'm using the latest version of jquery ui available

any suggestion?

thank you