By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

OnChange=submit(); command flips parent page...

P: n/a
Mel
i popup a new window in my submit command and return false;

but my parent still flips the page ! how can i stop it ?

thanks
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Wed, 5 May 2004 13:12:18 -0400, Mel <me**********@ssa.gov> wrote:
i popup a new window in my submit command and return false;

but my parent still flips the page ! how can i stop it ?


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.

Users can make mistakes. Allow them to fix them.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #2

P: n/a
"Mel" <me**********@ssa.gov> writes:
i popup a new window in my submit command and return false;

but my parent still flips the page ! how can i stop it ?


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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.