In rails app, I add the following line of code in application.js and I
get jQuery is not defined in firebug console.
In application.html.erb, I have the following:
<script type="text/javascript"
src="../javascripts/application.js"></script>
<script type="text/javascript"
src="../javascripts/jquery-1.4.2.js"></script>
Does anyone have a step by step instruction on how to remove prototype
completely so jQuery works? The jRails plugin seems to make them work
together. I want to remove prototype as I will never use it.
Thanks
Actually stepcarousel.js which uses jquery is working in the application
so I don't think there is a conflict with prototype. However I still get
the error jquery is undefined.
Does anyone have a step by step instruction on how to remove prototype
completely so jQuery works?
Sure:
1. Remove public/javascripts/prototype.js.
2. There is no step 2.
The jRails plugin seems to make them work
together. I want to remove prototype as I will never use it.
Perhaps unwise. After some experimentation with both, I'm include to
believe that Prototype may be the better of the two. I want to play
with both a little more before I state that as fact, though.