[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-09-23 Thread Andy Rappaport
Billy Hsu wrote: > include jquery and use jQuery.noConflict(); before you include > prototypeand > try again. > Thanks. Simply moving the JS include of prototype.js after all of my other JS includes did the trick for me. AJAX now works for my rails app. Andy -- Posted via http://www.ruby

[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-02-26 Thread Conrad Taylor
On Wed, Feb 25, 2009 at 10:20 PM, Radha Langde < rails-mailing-l...@andreas-s.net> wrote: > > Hi > > M hving javascript "scripts.js" which uses jQuery.js in rails > application. bt when it is used along with prototype.js, one of the > javascripts which hs been included first in my applicat

[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-02-26 Thread CFC
(function($){// Code $(document).ready(function(){}); })(jQuery); On Thu, Feb 26, 2009 at 8:08 PM, Radha Langde < rails-mailing-l...@andreas-s.net> wrote: > > Billy Hsu wrote: > > I usually named $j for jQuery. > > > > var $j = jQuery.noConflict(); > > > > > > Then, you can use $j(...) to do

[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-02-26 Thread Radha Langde
Billy Hsu wrote: > I usually named $j for jQuery. > > var $j = jQuery.noConflict(); > > > Then, you can use $j(...) to do something with jQuery and use $ to do > something with Prototype. > I think maybe you must modify some code in scripts.js or try include > jquery.color.js and scripts.js a

[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-02-25 Thread CFC
I usually named $j for jQuery. var $j = jQuery.noConflict(); Then, you can use $j(...) to do something with jQuery and use $ to do something with Prototype. I think maybe you must modify some code in scripts.js or try include jquery.color.js and scripts.js after you define jQuery.noConflict();

[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-02-25 Thread Radha Langde
Billy Hsu wrote: > include jquery and use jQuery.noConflict(); before you include > prototypeand > try again. > > On Thu, Feb 26, 2009 at 2:20 PM, Radha Langde < > rails-mailing-l...@andreas-s.net> wrote: > >> I tried using >> >> > >> I did the same thing... first in included jQuery.js the

[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-02-25 Thread CFC
include jquery and use jQuery.noConflict(); before you include prototypeand try again. On Thu, Feb 26, 2009 at 2:20 PM, Radha Langde < rails-mailing-l...@andreas-s.net> wrote: > > Hi > > M hving javascript "scripts.js" which uses jQuery.js in rails > application. bt when it is used along