Error received after going to checkout

General ShopSite user discussion

Error received after going to checkout

Postby mjbrunelle » Tue Jun 01, 2010 9:11 am

Error: elements[i].name is undefined

Source File: http://shopsite.ipower.com/ss10.0/sc/or ... info=SSMSB[removed].1689&fromid=thankyou.cgi&redirect=yes
Line: 68

Any Suggestions for a solution
mjbrunelle
 
Posts: 147
Joined: Sun Jun 21, 2009 5:09 am

Postby loren_d_c » Tue Jun 01, 2010 10:26 am

What's on line 68 (and the lines before and after) in the HTML source of the shopping cart screen when you get that error message?
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

It is in FoxFire Error Console

Postby mjbrunelle » Fri Jun 04, 2010 3:19 pm

Loren,

The error message is in the FireFox Error Console, and it references a line in the CheckIt script.

function CheckIt(button, blank_flag) {
var digits="0123456789";
with (document.forms[0]) {
n = elements.length;
for (i = 0; i < n; i++) {
if (elements[i].name.indexOf(":qnty") > -1) { << Error Here >>
for (j = 0; j < elements[i].value.length; j++) {
if (digits.indexOf(elements[i].value.charAt(j)) < 0) {
alert("Invalid number in Quantity field");
return(false);
mjbrunelle
 
Posts: 147
Joined: Sun Jun 21, 2009 5:09 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 146 guests