[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] problem with remove checkbox on basket page
On 20 Oct, Otis Gospodnetic wrote:
> ****** message to minivend-users from "Otis Gospodnetic" <otis@DOMINIS.com> ******
>
> More about this problem - I put the same remove checkbox in two places on
> the basket.html page (the original spot plus another one).
>
> ...
> <INPUT TYPE=checkbox NAME="quantity0"
> onClick="this.form.action='http://mysite.com/cgi-bin/subs/processJb7c2bbn;;6
> 30',
> this.form.submit()" VALUE=0>
> ...
> <INPUT TYPE="text" NAME=quantity0 VALUE="1" SIZE=1 MAXLENGTH="1">
> ...
> <INPUT TYPE=checkbox NAME="quantity0"
> onClick="this.form.action='http://mysite.com/cgi-bin/subs/process?Jb7c2bbn;;
> 632',
> this.form.submit()" VALUE=0>
> ...
>
> The first "quantity0" checkbox works, the second one does not.
> Ooooh, just figured it out.
> The problem is the "quantity0" text (not checkbox) field. I guess the CGI
> takes takes the value of first quantity0 param (which is first checkbox), so
> putting the checkbox after the quantity0 text field doesn't have any effect
> on the CGI.
>
> This limits the layout a bit, but I guess asking people to enter 0 (zero)
> for the quantity if they want to remove the item from their shopping cart is
> common?
> Yes/No?
>
> Thanks,
>
> Otis
Hi Otis,
i am not sure! Maybe i have had the same trouble long time ago!
Maybe this codes can help you...
<INPUT TYPE=checkbox NAME="[quantity-name]"
onClick="document.forms[0].action='[process-target]',
document.forms[0].submit()"
VALUE=0>
I get this with my browser...
<INPUT TYPE=checkbox NAME="quantity0"
onClick="document.forms[0].action='http://mydomain/cgi-bin/myshop/process?6d3GmZdn;;482',
document.forms[0].submit()"
VALUE=0>
If you have two or more FORM tags, make sure the number of the FORM tag
are right. I my case, i use this codes in my first FORM tag.
Regards,
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen