|
by Laura Silks <lsilks(at)rca.co.uk>
|
| Date: |
Mon, 6 Mar 2000 18:36:49 -0000 |
| To: |
hwg-techniques(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
Any idea why this code will not work???? Please explain the parameters I
should pass???
The size and length fields aren't being seen, I think as the cart error is
size not an object??????!!!
<script language="JavaScript">
<!--
function calc(what) { //i.e. this param??
for (var i=0; i<9; i++) {
if (what.size[i].selected == true) // and these ???
var size = what.size[i].value;
}
for (var i=0; i<3; i++) {
if (what.length[i].selected == true)
var length = what.length[i].value;
}
what.number.value = product + size + length;
}
--></script>
<form
action="https://www.shopcreator.net/mall/shopcreatorcart/shoppingcart.cfm
<https://www.shopcreator.net/mall/shopcreatorcart/shoppingcart.cfm> "
method="post" onSubmit="return calc(this.form)">
<input type="hidden" name="desc" value="mask">
<input type="hidden" name="store" value="OOF">
<input type="hidden" name="product" value="002697">
<input type="hidden" name="number" value="">
<tr>
<td align="center" colspan="2"><font
face="Arial"><strong>mask</strong></font></td>
</tr>
<tr>
<td height="20" colspan="2"></td>
</tr>
<tr>
<td valign="top" align="right">
<font face="Arial">
<img src="graphics/002697.jpg"></font>
</td>
<td valign="top" align="left">
<font face="Arial">
<small><ul><li>this is a very strong mask</li> </ul> </small>
<input type="hidden" name="price" value="100">
<p><small><b>Price:</b> 100</small></font>
</td>
</tr>
<tr>
<td></td>
<td align="left"><font face="Arial"><small>Size<BR>
<SELECT SIZE="1" NAME="Size">
<OPTION VALUE="/S/S" SELECTED>S/S 7cm x 39cm</OPTION>
<OPTION VALUE="/S/M" >S/M 7cm x 44cm</OPTION>
<OPTION VALUE="/S/L" >S/L 7cm x 48cm</OPTION>
<OPTION VALUE="/M/M" >M/M 7.5 cm x 45.5cm</OPTION>
<OPTION VALUE="/M/L" >M/L 7.5cm x 51cm </OPTION>
<OPTION VALUE="/D/S" >D/S 9cm x 42cm </OPTION>
<OPTION VALUE="/D/M" >D/M 9cm x 45.5cm </OPTION>
<OPTION VALUE="/D/L" >D/L 9cm x 51cm </OPTION>
<OPTION VALUE="/XD/L" >XD/L 10cm x 53.5cm </OPTION>
</SELECT>
<BR>Length<BR>
<SELECT SIZE="1" NAME="Length">
<OPTION VALUE="/S" SELECTED>Short</OPTION>
<OPTION VALUE="/M" >Medium</OPTION>
<OPTION VALUE="/L" >Long</OPTION>
</SELECT>
<BR><br>
</small></font>
</td>
</tr>
<tr>
<td></td>
<td align="left">
<input TYPE="hidden" NAME="quantity" VALUE="1" SIZE=3><br>
<input type="hidden" name="backto" value="C://desktop/test/test.htm">
<input type="submit" value="Add to cart">
</form>
Thanks
Laura
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.