The while loop was the first thing I tried, the problem with it is that it keeps the browser so busy that it does not even respond anymore. The double callback approach did the trick.
On Apr 17, 11:04 am, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > I would suggest a while loop after you pop the jqModal, maybe something > like: > > var confirm = false; // a global var ? > > in the function: > > // code to execute jqModal confirm box > > while(!confirm){} > > ideally the while loop will keep the rest of the code from executing till it > gets a confirm that is true. > > But what I do in my app is that I execute the confirm box and set a click > event to the yes to execute the yes function and if no is clicked it just > closes. > > On 4/17/07, laurenty <[EMAIL PROTECTED]> wrote: > > > > > is there a way to pause js execution when overriding alert and confirm > > with jqModal (just like the original behavior)? > > > thanks > > > Laurent > > -- > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com