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
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
(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
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
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();
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
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
7 matches
Mail list logo