![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: event handler problem in large complex form
From: Arthur Rusdell-Wilson <arthur@kitekonsultants.co.uk>
Date: Fri Jul 15 2005 - 08:37:20 CEST
I think you are probably right. I worked on that assumption, and everything
-- Arthur Rusdell-Wilson "VK" <schools_ring@yahoo.com> wrote in message news:1121186542.899613.91760@g49g2000cwa.googlegroups.com... > > I find that in a large form (especially if there is a table within the > > form?) that the form is submitted to my server-side script even when a > > JavaScript 'onsubmit' event handler returns 'false'. > > does any one else have this problem, and is there a work-round? > > I encountered it several times (but very rarely). It was always > connected with too long delay before you approve/cancel the bubble. > Always was helped by optimising the code (so your decision would come > out quickly). One of undescribed yet ghosts of JavaScript (like orphane > scripts). Never happens on primitive events like onclick/mousevove/etc. > > Form submission / window closure / unload - the most probable places to > meet them. I call this "speedy bubbles", you may too if you want :-) > > I guess it's a part of interface protection, so you couldn't lock user > on one page by simply putting each onsubmit/onbeforeunload/onload on > some endless process. Just an amateur guess... > > Get the fat out of you script, it should help right away. Unless the > problem is im something else. >Received on Tue Oct 18 02:56:15 2005 |