JQuery UI Modal dialog not blocking
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 dialog.open, it doesn't stop processing the javascript
that follows after the dialog.open statement. How do I make the modal
dialog really "modal", identical to javascript "confirm"? The JQuery
UI modal dialog seems to only disable the keystrokes/mouse clicks but
I want it to stop processing the javascript code until the user
chooses an option !!
Any help is greatly appreciated. I am kinda stuck..
Thanks !
--