window.onbeforeunload event in Netscape

V

Vladimir

It appears that this event (window.onbeforeunload) does not fire at least in
Netscape 7.0 and 7.1. But window.onload and window.onunload events do! I
really need this event handling in my application as I need to show message
after submit button click but before actual unload wich starts after client
receive responce from the server. This responce is very slow sometimes. Thus
client should be warned.
Does anybody know how to solve this problem?
 
B

bruce barker

use the onsubmit which fires before the submit. note: the event does not
file if a form.submit() is done, so if you use asp.nets __dopostback(), you
need to update it to call your event.

-- bruce (sqlwork.com)


| It appears that this event (window.onbeforeunload) does not fire at least
in
| Netscape 7.0 and 7.1. But window.onload and window.onunload events do! I
| really need this event handling in my application as I need to show
message
| after submit button click but before actual unload wich starts after
client
| receive responce from the server. This responce is very slow sometimes.
Thus
| client should be warned.
| Does anybody know how to solve this problem?
|
| --
|
|
| Vlad
|
|
 
V

Vladimir

Many thanks Bruce!

Actually I use corporate libraries wich generate body and form tags
authomatically. So I can not modify them at my convenience. Thus when
window.onoad I call special function wich adds submit listener to my
definite form getting it by its ID. And it works eighter in NN and IE
happily.

BTW. There has one more problem appeared - when form.onsubmit I disable all
radiobuttons on the page as part of my logic. But they all appear unchecked
in codebehind after this disabling. It damages my logic and makes solution
treat all form radiobuttons as unchecked. Don't you know why it is so?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top