I'm looking for a jquery/nice looking alternative to the standard dialog box. jQUery UI has a nice one, but it doesn't pause script execution to wait for the response like confirm() does. The demo below is supposed to display two divs that display the choice of the preceding confirm box, but the jquery dialog box doesn't cause the script to wait.
http://jsfiddle.net/EvilAmarant7x/r7Ur5/
I specifically need something that causes the script to pause.
Thanks
Unfortunately, this is not possible if you use a custom confirm/modal window. You're going to have to use callbacks or opt to use the new deferred object introduced with 1.5.
Using deferred would look something like this:
Your using the dialog in the wrong way
you should do it like this
or something similar
** EDIT **
so something like this ?