JS conflict

When a variant is chosen on product options, a blank page is returned with the following error (similar problem with other browsers):



User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; InfoPath.3)

Timestamp: Sun, 13 Mar 2011 06:23:01 UTC





Message: Object required

Line: 43

Char: 115

Code: 0

URI: [url]http://books.google.com/books/previewlib.js[/url]





Message: Could not complete the operation due to error 80020101.

Line: 241

Char: 10

Code: 0

URI: [url]http://blink.com.ph/staging/js/ajax.js[/url]



It turned out to be a conflict with a JS code i have. I have the code eblow under

views/products/components/product_images.tpl





It's a google code used to retrieve book previews. Product options works fine when i remove this code.
Any idea how to fix this conflict?

thank you!

Grab a local version of the code. Find the conflict. Change it and then load it as a local js file.