Modal dialog not working in chrome/explorer yet works in firefox
- by Mike Z
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)