Re: [jquery-ui] JQuery UI Modal dialog not blocking

2009-11-24 Thread Nate Laws
You can't. alert and confirm are browser based controls. Everything else is an html based widget which can not and should not have the ability to block the browser like alert and confirm. The general solution is to put the stuff you would have after the dialog open call inside of the button and

[jquery-ui] JQuery UI Modal dialog not blocking

2009-11-23 Thread Rushi
Hi, I am using a JQuery UI modal dialog to ask a confirmation to the user. The dialog has buttons "Save" and "Cancel". If user clicks "Save", I make an AJAX call to do a database update and if he clicks "Cancel", I need to ignore his changes. The problem I am facing is when I open the dialog using