473,406 Members | 2,467 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,406 software developers and data experts.

Submitting a webpage during the OnBeforeUnload event

In firefox,the function called using onbeforeunload does not submit the form using submit() function.What could be the solutionto this?I have to submit the form with onbeforeunload.
Oct 14 '11 #1
2 1905
gits
5,390 Expert Mod 4TB
please post the relevant code that you use ... so that it is possible to see where the problem could be.
Oct 14 '11 #2
Frinavale
9,735 Expert Mod 8TB
It is probably not appropriate to submit the page when the page is about to be unloaded.

If the page is about to unload then the user has either already submitted it or they are leaving your page (by closing the browser or typing a new url into the address bar)

If you call submit in the onbeforeunload event you will either cause a recursive problem that will crash the browser/page or you will just not be able to do so (which makes sense to me)
Oct 14 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Marcia Gulesian | last post by:
What code can I put in the 'onbeforeunload' event to cancel the 'unload' action (when user closes browser) and then present the user with an alert saying that he/she must use the logout button.
2
by: Stan | last post by:
This is how I access Pieces field in my editable datargid during Update event: protected void grdMain_OnUpdate(Object sender, DataGridCommandEventArgs e) { string Pieces = ((TextBox)...
0
by: Rick Lubanovic | last post by:
I have been working on a script to check if a page has changed before the user leaves the page. I have a call to a javascript function on the onbeforeunload event. This seems to work in most...
1
by: RJN | last post by:
Hi I have an onbeforeunload event where in I call a server side script to release some locks on the databse. function releaseLock() { __doPostBack('btnUnlock',''); } <body...
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: lee_youjin | last post by:
I needed to defect when the user is clicking the IE X button ( top right). so I could execute the cleanup function. I was able to detect it using onbeforeunload event. Now I need to call the...
1
by: Krushangi | last post by:
Hi Code for: How to change picturebox during Runtime. I want this Code in C#.net I have one picturebox Image and i want to change it during MouseUp Event at Runtime. Tell me how can i give...
2
Frinavale
by: Frinavale | last post by:
I'm not sure what I'm doing wrong. I am attempting to configure my object so that the object's method is called during the onbeforeunload event of the page. I have it so that it calls the...
1
Frinavale
by: Frinavale | last post by:
I don't have a clue how to work around this problem and I'm open to any suggestions on the topic.... In Internet Explorer it appears that the onbeforeunload event is fireing despite the fact that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.