Results 1 to 1 of 1
Thread: [jQuery] Problem with eval()
Oct 24, 2010, 23:00 #1
- Join Date
- Oct 2010
- 0 Post(s)
- 0 Thread(s)
[jQuery] Problem with eval()
I have an ecommerce site based in WordPress. Im having a small problem with the js.
Problem - When you have a number of items in the cart, and you click the change currency button, ( any of the options, pounds, dollars or euros)
the js returns an error when trying to update the prices in the cart. This happens in FireFox and IE8, but in FF it carries on running regardless of the error, IE8.
I did some de bugging and this is where the error is occurring.
line 336 "eval(returndata);"
This is whats is being evaluated and outputted.
product_id = 8; price = "$100"; numeric_price = "100";
If anyone can give me some advice as to how to correct this it would be much appreciated.
PS i have tried removing the currency symbol that gets added in, it still bring back the error.