473,322 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

window.onbeforeunload event in Netscape

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
Nov 19 '05 #1
2 1612
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)
"Vladimir" <co***@ukr.net> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
| 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
|
|
Nov 19 '05 #2
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?
--

Vlad

"bruce barker" <no***********@safeco.com> wrote in message
news:OB**************@TK2MSFTNGP10.phx.gbl...
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)
"Vladimir" <co***@ukr.net> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
| 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
|
|

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert Oschler | last post by:
I have a web page where I want to make sure that an image HTTP request is successfully made before the page unloads. The request is made by setting the image element's SRC property to the desired...
8
by: Fred Basset | last post by:
I am modifying existing code to add modal functionality to an IE5+ ActiveX Web-App. What I am trying to achieve is simple modal behaviour on popup windows, apart from certain specified ones. I...
1
by: rufus | last post by:
I have a function that checks whether the user is trying to navigate away from the page before saving all their data. I achieve this using the window.onbeforeunload javascript event. It fires...
5
by: GEL | last post by:
Hi, I want to open a new browser window, let the user use that window for several minutes, and when they close, I'd like to change the page displayed in the original window. According to...
1
by: RJN | last post by:
Hi I have a pop-up window which has a task menu on its left which are nothing but links to different screens. This window also has a close button. On click of close button I do some server side...
1
by: tecknick | last post by:
Hi All I am using the window.onbeforeunload event on a webpage as follows : window.onbeforeunload = confirmExit; function confirmExit() { if (changesMade == 1 && needToConfirm) ...
3
by: sonali | last post by:
i want to dopstback should get called on brower's close button click also function closewindow() { if (window.dialogArguments) { // Calling the method (given as argument) to cause the...
0
by: ragunath79 | last post by:
Hi, i am calling window.close event in onclick event of close button in Asp.net master page to close window. I used window.onbeforeunload event in content page(of same master page) to show warning...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.