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

.jeff jeff at members.evolt.org
Wed Jan 29 19:58:02 CST 2003


anthony,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Anthony Baker
>
> 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">
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

are they all named paypal_moneymoxie?  if so, there's problem #1.  form
names must be unique.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 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>
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

it's your choice to alienate some visitors, but you don't have to:

Forms & JavaScript Living Together in Harmony
http://evolt.org/article/thelist/17/28553/

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> These forms work when placed INDIVIDUALLY on a page, but
> not together.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

sounds like they all share the same name.  change that and they'll work.
however, imo, your work isn't done yet.  please stop using a link to fire
the submit() method.

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list