Modal dialog not working in chrome/explorer yet works in firefox

Posted by Mike Z on Stack Overflow See other posts from Stack Overflow or by Mike Z
Published on 2011-11-30T01:39:23Z Indexed on 2011/11/30 1:51 UTC
Read the original article Hit count: 128

Filed under:
|

I have the following modal dialog click function

 $("#foo").click(function(){$("#bar").dialog({

    width: 400,
    modal: true,
    resizable: false,
    buttons:{
            "Save": function(){
                        $.post('remote_foo.php', $('#waka').serialize(), function(data){
                    $('#list').html(data);})
                    $(this).dialog("close");
                    $('.dial').val('');
                    $('.url').val('http://');

                    },


            "cancel": function(){
                $(this).dialog("close");
            }
        }//end of buttons
    }).('open');//end of jquery dialog
})// end of click function

It works fine in firefox but to be honest i dont even think my click function is set up right.

1)Is this the proper way to open the dialog with a click. 2) is there a specific reason that this would not work in chrome/internet explorer? (This is the jquery ui)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about modal