I have included all the js library in page.xml of my magento.
<action method="addJs"><script>lib/jquery/jquery-1.10.2.min.js</script></action>
 <action method="addJs"><script>lib/jquery/noconflict.js</script></action>
 <action method="addJs"><script>prototype/prototype.js</script></action>
 <action method="addJs"><script>prototype/validation.js</script></action>
 <action method="addJs"><script>lib/ccard.js</script></action>
 <action method="addJs"><script>scriptaculous/builder.js</script></action>
 <action method="addJs"><script>scriptaculous/effects.js</script></action>
 <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
 <action method="addJs"><script>scriptaculous/controls.js</script></action>
 <action method="addJs"><script>scriptaculous/slider.js</script></action>
 <action method="addJs"><script>varien/js.js</script></action>
 <action method="addJs"><script>varien/form.js</script></action>
 <action method="addJs"><script>mage/translate.js</script></action>
 <action method="addJs"><script>mage/cookies.js</script></action>
after that also my prototype.js is not working. I have used noconflict.js also. It was working properly before. After merging the js files it is giving the errors.
2 Answers 2
only noconflict.js this will not work you have to replace variable $ with jQuery
add this var jQuery=$.noConflict(); in start of file every jquery related file. and replace every $ with jQuery
- 
 There are a lot of js files how it is possible to change all $ with jQuery.Asheem Patro– Asheem Patro2016年04月29日 07:52:28 +00:00Commented Apr 29, 2016 at 7:52
- 
 you have to otherwise conflict still there.Qaisar Satti– Qaisar Satti2016年04月29日 07:55:56 +00:00Commented Apr 29, 2016 at 7:55
- 
 I have replaced all $ with jQuery but it still conflictingAsheem Patro– Asheem Patro2016年04月29日 08:44:39 +00:00Commented Apr 29, 2016 at 8:44
- 
 Previously some how it was working now totally stopped working.Asheem Patro– Asheem Patro2016年04月29日 08:45:10 +00:00Commented Apr 29, 2016 at 8:45
- 
 i think you added some new files you need to replace it there.Qaisar Satti– Qaisar Satti2016年04月29日 11:00:11 +00:00Commented Apr 29, 2016 at 11:00
go ahead and add the contents of noconflict.js directly at the end of your jquery file , this will ensure that it gets executed right after jquery is loaded
- 
 I have added the noconflict.js also but it is conflictingAsheem Patro– Asheem Patro2016年04月29日 07:28:23 +00:00Commented Apr 29, 2016 at 7:28
- 
 @Anton S, please provide me more detail. I also faced the problem. When I merge and minify JS file, a lot of jQuery Conflict are occurred. Do I need to add noconflict.js at end of the local.xml file?502_Geek– 502_Geek2016年09月28日 09:53:53 +00:00Commented Sep 28, 2016 at 9:53
- 
 you need to understand what is causing the conflict, adding something to somewhere is meaningless hack that won't get you farAnton S– Anton S2016年09月28日 11:14:09 +00:00Commented Sep 28, 2016 at 11:14
Explore related questions
See similar questions with these tags.
noconflict.jsthis will not work you have to replace variable$withjQueryvar jQuery=$.noConflict();in start of file every jquery related file. and replace every$withjQuery