invalid argument IE7 javascript line number changes

Posted by Lauren on Stack Overflow See other posts from Stack Overflow or by Lauren
Published on 2010-03-11T23:23:00Z Indexed on 2010/03/12 5:27 UTC
Read the original article Hit count: 332

This is the test page: http://www.onebagoneearth.com/ OBOEKindBag (spaces between the pagename and domain because I don't want the URL indexed as such)

If you click on one of the thumbnails, or on the main image, you see a popup window, and if you enter a quantity and then click "add to cart" here, in IE7 (and IE6, but I'm not focusing on that as much), you see an invalid argument error with Code:0.

The line # changes depending on which item you add to cart! The URL also changes because it depends on this line of javascript: var cartUrl = "/app/site/backend/additemtocart.nl?c=659197&n=2&buyid=" + zbuyid + "&qty=" + zqty + "&" + strOptionId + "=" + zitmId .

The strOptionId variable, which contains the bag color type (ie. this changes for the different types of bags, like Kind bags, regular OBOE bags), and the zitmID variable which contains the particular bag color that you've selected (ie. Black), are what change, and also what seem to affect the line number that the invalid argument occurs on.

The error definitely doesn't occur in Chrome 4, IE 8, or FF 3.5.

Ideas?

© Stack Overflow or respective owner

Related posts about invalid-argument

Related posts about JavaScript