[thelist] Window targeting problem

Jeff jeff at members.evolt.org
Mon, 17 Jan 2000 14:45:03 -0800


james, jay, & keith,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Aylard James J <jaylard@equilon.com>
:
: Actually, I've used the onsubmit method quite successfully to open a new
: window as a target for a form. If you think about it, if onsubmit didn't
: complete its work before actually submitting the form it would be useless
: for form validation. The following example, though worthlessly simple,
will
: work in at least Nav3+ and IE3+.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

you can extend the effectiveness of your function by asking the window
opening function to return true prior to submitting the form thereby
guaranteeing that your popup window will be open before final submission.

<HTML>
  <HEAD>
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
      <!--
        function fnProcessForm()
        {
          window.open('','MyWin');
          return true;
        }
      // -->
    </SCRIPT>
  </HEAD>
<BODY>
  <FORM
    NAME="MyForm"
    METHOD="post"
    ACTION="Results.asp"
    TARGET="MyWin"
    onSubmit="return fnProcessForm()">
    <INPUT TYPE="SUBMIT">
  </FORM>
</BODY>
</HTML>

just my 2¢,

: jeff.howden
: web.development.professional
: evolt.org.member
:
: the.best.looking.developers.on.the.net
:
: http://evolt.org/
: jeff@members.evolt.org