[wplug] [OT] Javascript help with submit function

Bill bhalpin at collaborativefusion.com
Wed Feb 19 13:20:31 EST 2003


Russ

Please eend the code where this function is called.

-b

On Wed, 2003-02-19 at 12:58, Russ Schneider wrote:
> I know this is a Linux mail list, but I have a javascript problem that's 
> really buggin' me and no one can solve it.  I was hoping someone on this 
> list could help.  Forgive me if this is a big taboo.
> 
> I've created a simple function:
> 
> <script language="javascript">
> <!--
>     function newAction(newForm) {
>         newForm.action = "email.asp";
>         newForm.submit();
>         return true;
>     }
> //-->
> </script>
> 
> Basically, I have two buttons.  One is a "submit" button, and the other, 
> calls this function which is supposed to change the action of the form 
> and submit it.
> 
> However, I keep getting a "newForm.submit() is not a function" error. 
>  From the JavaScript manual ( 
> http://developer.netscape.com/docs/manuals/communicator/jsref/form1.htm#1010966 
> ) it appears that my syntax and usage is correct, but alas, no dice.
> 
> One thing that does NOT appear to be an issue is that I do not have a 
> button named "submit", nor do I have any element on the page named 
> "submit", so that does not appear to be the problem.
> 
> Any suggestions?
> 
> -- 
> ___________________________________
> Russ Schneider (a.k.a. Sugapablo)
> http://www.sugapablo.com
> 
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug





More information about the wplug mailing list