Preethi Sivakumar wrote:
> Dharmdip Rathod wrote:
>> jQuery.noConflict();
>> jQuery(document).ready(function($){
>>
>> });
>> write this in javascript file from where you are callin function.
>
> Thanks Raghod :)
>
> I've added "jQuery.noConflice();" in my application.html.erb
> and
> the second chunk of code is added in my file where i'm calling the Java
> script.
>
> Jquery is runnig perfectly. :)
>
> The issue now is, Ajax calls are not working as I'm passing parameters
> in Ajax call using $ for fetching form's variables.(i think it conflicts
> with Jquery's $)
>
> In my controller i'm getting the variable passed as "undefined"
>
> How to over come this?
Found the solution!
I included Jquery first, jQuery.noConflict() next and then prototype.js
in my application.html.erb
It solved all the problems!! :)
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---