[thelist] Having a Javascript "document.submit" Error

Craig cd-ml at aardvark.net.au
Wed Jan 29 19:40:00 CST 2003


----- Original Message -----
From: "Anthony Baker" <lists at thinkbigideas.com>
To: <thelist at lists.evolt.org>
Sent: Thursday, January 30, 2003 10:22 AM
Subject: [thelist] Having a Javascript "document.submit" Error


>
> Anyone ever have this problem -- and ideally a solution?
>
> I have a page with multiple single-item PayPal forms on
> it, and am using the following code for the <form> tag:
>
> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"
> name="paypal_moneymoxie">

Do each of the forms on your page have different name value's?

>
> And the following code for the submit button (also using Youngpup's
> Soopa-Rollover JavaScript for the off/on rollovers):
>
> <a href="javascript: document.paypal_moneymoxie.submit();"><img
> src="/img/button_regnow_off.gif" hsrc="/img/button_regnow_on.gif"
> width="75" height="15" border="0" /></a>

have you tried 'onclick="document.forms[0].submit();"'
...where forms[0] is the first form and forms[1] is the second etc...

>
> There are four such forms on this page, and I've made sure
> that they form NAME and document.NAME.submit(); match in
> each one of them.
>
> These forms work when placed INDIVIDUALLY on a page, but
> not together.
>
> On the single page that they're all placed, the first one works,
> but the rest all get the same error message:
>
> "Object does not support this property or method"
>
>
> Thanks in Advance,
>
> Anthony



More information about the thelist mailing list