TotalHosting
Newbie
Posts: 1
Registered: 2/17/2005
Location: New Jersey
Member Is Offline
|
| posted on 2/17/2005 at 05:20 AM |
|
|
Brackets in variable?
Hi.
This is a simplified look at my form, but even at it's most basic I get the following Runtime error:
Line: 0
Error: 'document.PRODProducts.AttributeValue.1' is null or not an object.
Note the "Value.1" Now when you look a the code, you'll see the actual variable value
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script src="ts_picker.js" type="text/javascript"></script>
</head>
<body>
<FORM NAME="PRODProducts" METHOD ="post" ACTION ="/Merchant2/merchant.mvc?">
<INPUT TYPE ="hidden" NAME ="Action" VALUE ="ADPR">
<INPUT TYPE ="hidden" NAME ="Product_Code" VALUE ="baby_block">
<INPUT TYPE ="hidden" NAME ="Store_Code" VALUE ="FinalCut">
<INPUT TYPE ="hidden" NAME ="Category_Code" VALUE ="engraved_personal_gifts">
<INPUT TYPE ="hidden" NAME ="OUIX_nextoffset" VALUE ="">
<INPUT TYPE ="hidden" NAME ="Offset" VALUE ="">
<INPUT TYPE ="hidden" NAME ="Product_Count" VALUE="0">
<input type="hidden" name="PRODAction" VALUE="">
<br>
<input type="Text" name="AttributeValue[1]" value="">
<a
href="javascript:show_calendar('document.PRODProducts.AttributeValue[1]', document.PRODProducts.AttributeValue[1].value);">
<img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp"></a>
</form></body></html>
|
Do I need to escape the "[" brackets or something?
This is part of a shopping cart system so I cannot change the form names. Anyone have a suggestion?
Thanks.
Pete
|
|
|
|