Chris Dance
Chris Dance
Yes. This is possible. If you ave AreYouSure attached to a form, you can check it's "dirty state" any time by simply looking for a class "dirty" on a form....
Unfortunately this is not possible. All current browsers to my knowledge only support the "standard dialog" for message passed back on the `beforeunload` event. It is possible to display your...
@dyentite You can do this using the code example above on your own "page exit" event. If you want to use/leverage the browser's event (e.g. closing a tab/window), you'll need...
Is that an anchor to submit the form? Are you able to post some example code so I can better understand the issue.
Thanks for the existing code. I now understand. There is an IE issue/bug. It's raising the "onbeforeunload" event even though the links do not cause browser to leave the exiting...
Interesting. Are you able to share a test/example page demonstrating the problem? The error seems to be coming from jquery.validate ? Do you think Are-You-Sure is getting in the way?
A bit of history. The "cooldown" was originally there for IE only, but then Chrome started to exhibit the same behaviour. In short the bowers seem to raise multiple 'beforeunload'...
I'd like to understand the performance issue a little more. A few questions: 1) How many fields do you have in your form? 2) What browser(s) are you setting the...
Great. I'll review this soon. I've just done a quick look and it seems fine. (There is quite a bit of white space shifting making the diffs difficult, but I...
I think you're proposed solution is correct. If it's an image button is a "submit" button it should have worked. If it's just a standard button wired up to it's...