Re: MOVED: Programatically setting form.action for Netscape?

From: What-a-Tool (Die!FrigginSpammersDieDie!_at_IHateSpam.Net)
Date: 06/14/04


Date: Mon, 14 Jun 2004 19:51:27 -0400

Thank you very much.

Seems like the solution was so simple when I see it spelled out for me.

-- 
/ Sean the Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
"David C. Holley" <DavidCHolley@netscape.net> wrote in message
news:OQt6GLgUEHA.704@TK2MSFTNGP09.phx.gbl...
> [MOVED FROM ANOTHER NEWSGROUP]
>
> function reservationType_onChange()
> {
> document.frmReservationRequest.action
> ="../content/reservationRequestV3_Submit.asp";
> document.frmReservationRequest.submit();
> }
>
> note that I fully reference the FORM from the DOCUMENT object. If you
> had set a variable equal to the form then you could have omitted the
> full reference as in...
>
> var formName=document.frmReservationRequest;
>
> followed by
>
> (emailCheck(formName.userEmail.value)==false)
>
>
> David H
>
> What-a-Tool wrote:
>  > Have a school project in which I have to use an ASP page to process
data
>  > from a form submitted by a user. Have to do this 3 ways - Using a
> Function,
>  > a Sub Procedure, and a Class. Simple enough.
>  >
>  > I decided to see if I could get them all to work from 1 submittal
> page using
>  > an option group of radio buttons, and JavaScripting to send me to the
>  > correct page (just as a personal learning experience). Got this working
>  > also - but only in IE.
>  >
>  > Following is some of my code:
>  >
>  > <form name="frmsubmitF" id="frmsubmitF" onsubmit="return wheretogo();"
>  > action="../noscript.htm" method="post">
>  >
>  > function wheretogo()
>  > {
>  >
>  > if (eval("document.frmsubmitF.callfunc.checked") == true)
>  >    {
>  >     alert("Calling ASP Function");
>  >     frmsubmitF.action = "converttempfunction.asp";
>  >
>  > .......
>  >
>  > It seems that Netscape doesn't recognize the      <
> frmsubmitF.action =
>  > "converttempfunction.asp";   >
>  >
>  >
>  > Is there another way to do this that other browsers will recognize?
>  >
>

Loading