Tuesday, January 27, 2009
Welcome!
Greetings! And welcome to my blog. Thanks for stopping by. I have one question before we get started: why in the world are you here? I know why I'm here, but why you? Why now?
I'm not harassing or anything, I'm just baffled someone found this. Moving on...
I created this blog initially to explore the way it behaves in Opera (v. 9.62 and 10.00 alpha). The issue I'm trying to address is the browser event onbeforeunload that fires in IE 6+ (as far as I've tested) and Firefox (latest and greatest version because it will annoy me otherwise).
Here's the problem: we have a page with some various inputs, buttons, links, select boxes, and even some check boxes. When the user submits the form, we don't want them to be able to submit again before the page loads anew.
Our previous effort was to place on every, single, clickable element in every, single page something to the effect of:
onclick="suppressInput();"
Aside from being elegant and efficient, of which it was neither, it was a headache. Some quick search lead us to the browser event onbeforeunload. Yay! It was perfect. Before the page unloaded, it would call our little event. Except for one problem...it doesn't work in Opera. More accurately, it's never called by Opera.
More web searching lead me here. Somewhere out there, it was mentioned that blogger.com handled this type of situation with Opera very well. So I hopped on and hoped for the best. It doesn't work with Opera 10. Back/forward/navigation to another page are all working, unfortunately, perfectly but never am I being caught for an "Are you sure you want to destroy all that hard work?"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment