[jQuery] Re: prompt before closing dialog

2009-12-17 Thread Obi1
this doesn't seem to work, i mean the prompt appears but only after dialog is closed; also tryed using the beforeclose event but the prompt doesn't even show.

Re: [jQuery] Re: prompt before closing dialog

2009-12-17 Thread Richard D. Worth
Here's an example of using a confirm inside beforeclose Demo: http://jsbin.com/urosa Source: http://jsbin.com/urosa/edit - Richard On Thu, Dec 17, 2009 at 5:30 AM, Obi1 gurreiro_fa...@yahoo.com.br wrote: this doesn't seem to work, i mean the prompt appears but only after dialog is closed;

[jQuery] Re: prompt before closing dialog

2009-12-17 Thread Obi1
it doesn't work for me as i'm using jConfirm not javascript confirm but it will have to do while i don't find a solution. Thanks

Re: [jQuery] Re: prompt before closing dialog

2009-12-17 Thread Richard D. Worth
The built in browser confirm is the only way you can block (with for the user to respond) without blocking the UI. Any javascript confirm will have to use a callback instead of a return false. In that case you can return false to prevent the close, then use the result of the jConfirm callback to

[jQuery] Re: prompt before closing dialog

2009-12-17 Thread Obi1
OK, it's working fine. thank you for the indications.