I will include jquery first, than include prototype:
<head>
<%= javascript_include_tag "jquery" %>
<script>var $j = jQuery.noConflict(); </script>
<%= javascript_include_tag "prototype" %>
</head>
or You can write jQuery code by this way:
<script>
(function($){/* Write jQuery Codes in here */})(jQuery);
</script>
On Wed, Feb 25, 2009 at 11:16 PM, Salil Gaikwad <
[email protected]> wrote:
>
> i am using......
>
> Prototype JavaScript framework, version 1.6.0.1
>
> jQuery 1.2.3 - New Wave Javascript
>
> rails-2.0.2
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
TWRUG Blog:
http://blog.rubyonrails.org.tw
CFC on Rails:
http://zusocfc.blogspot.com
Only two surfaces of a box:
http://blog.pixnet.net/zusocfc
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---