On Wed, 5 May 2004 13:12:18 -0400, Mel <mehra.heravi@s sa.gov> wrote:
[color=blue]
> i popup a new window in my submit command and return false;
>
> but my parent still flips the page ! how can i stop it ?[/color]
Your code?
By the way, you should never perform an action like submitting a form or
navigating a page based on changing a value. Only do it from activating a
button or link: something they expect.
"Mel" <mehra.heravi@s sa.gov> writes:
[color=blue]
> i popup a new window in my submit command and return false;
>
> but my parent still flips the page ! how can i stop it ?[/color]
Calling the submit function bypasses the onsubmit handler. The handler
is only called if the user submits the form (using as submit button or
pressing return in an appropriate field).
You should almost never submit a page when a value is changed. It is a
usability problem for normal people making a mistake and, if used on
select elements, impossible to use for people navigating with the
keyboard (which some people are forced to do).
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Comment