0

Trying to figure out what is causing the javascript errors on this page with no luck. Also it is preventing the other javascripts from executing, i.e. the tabs not being formatted, add to cart button not working. Any feedback is appreciated, thanks

3
  • element.attachEvent("on" + name, wrapper). This is not a function. You are having this problem Commented Mar 14, 2011 at 12:33
  • 3
    Your are trying to "attachEvent" on controls through your javascript that is causing the errors, i would recommend you to use the Jquery instead of simple JS, that would be more effective.moreover you can use IE8 built-in script debugger to get the error details. Commented Mar 14, 2011 at 12:34
  • If you are using FireFox I suggest you get FireBug it has a great Javascript Debugger. Commented Mar 14, 2011 at 12:36

2 Answers 2

3

Is a conflict between prototype and some jquery library you are trying to use.

Just after add your jquery add this, in the body:

<script type="text/javascript">
//<![CDATA[
$.noConflict();
//]]>
</script>
Sign up to request clarification or add additional context in comments.

Comments

1

Your prototype.js has some problem, try first verify the form id.

error: productAddToCartForm is undefined in prototype.js

1 Comment

Thanks for the feedback, got me going in the right direction - prototype.js was conflicting with a jquery slider I installed - noConflict will fix this, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.