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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mel

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

    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


  • Michael Winter

    #2
    Re: OnChange=submit (); command flips parent page...

    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.

    Users can make mistakes. Allow them to fix them.

    Mike

    --
    Michael Winter
    M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: OnChange=submit (); command flips parent page...

      "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

      Working...