Uncaught Typeerror: Cannot Read Property 'noconflict' of Undefined
2 Answers 2
First try to comment out the jQuery code and see if the fault reproduces. If it does and so it's non related to jQuery (captain obvious).
If the error does not appear then effort to put the jQuery.noConflict() statement at the end of the jquery.js file. In that location is a chance that the conflicts appear higher in the folio before yous are calling noConflict.
And instead of decalring the variable $j=jQuery.noConflict() simply use jQuery instead of '$j'.
For example instead of:
var $j= jQuery.noConflict(); $j('#id').hide(); just use:
jQuery('#id').hide(); This always worked for me without the whatever conflicts.
Off topic (kind of): Attempt to employ prototype for simple things, like hiding and showing elements, setting style values. There is no need to involve jQuery for things you can do in i line with image.
answered April 11, 2013 at vi:58
Marius♦ Marius
194k 49 gold badges 400 silverish badges 805 bronze badges
6
I get this error when my URL has a # at the end. Probably a <a href="#"> that doesn't preventDefault().
answered Aug 14, 2022 at 12:06
Giel BerkersGiel Berkers
xi.5k 6 gold badges 64 silvery badges 111 bronze badges
one
-
Peachy For me the aforementioned upshot but what is the solution for this. Epitome throws fault instead of ignoring if the element not found.
Dec 14, 2022 at 7:03
Non the answer yous're looking for? Browse other questions tagged configurable-product javascript or enquire your own question.
Source: https://magento.stackexchange.com/questions/2917/another-prototype-jquery-conflict-issue-i-think
I did the get-go affair you said and there is yet an error so its not the conflict! At present I'k only confused!
Apr eleven, 2013 at 18:35
Information technology was working before this is and then random
Apr 11, 2013 at 18:35
I replaced the file with the default file earlier I messed with it and still have the fault!
April eleven, 2013 at xviii:38
hmmm this might have nil to do with the error.
Apr xi, 2013 at eighteen:43
Try, using firebug, to isolate the slice of code that does this. Or provide a link then someone tin accept a look. And since the outcome is still reproducing later on eliminating jQuery, there is no point for this question to still be open. I volition vote for closing information technology. No offence.
Apr 11, 2013 at 18:48