specify document. Re: [wplug] [OT] Javascript help with submit
function
Patryk Laurent
patryk at pakl.net
Wed Feb 19 13:48:22 EST 2003
Hi Russ,
Have you tried
document.newForm.submit();
?
Patryk
On Wed, 19 Feb 2003, 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?
>
>
More information about the wplug
mailing list