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 <
> [email protected]> wrote:
>
>> I tried using
>>
>> >
>>
I did the same thing...
first in included jQuery.js then
<script>
jQuery.noConflict();
</script>
and at last prototype.js.. bt nt working..
below is my rhtml file...and i followed the sequence given below... My
scripts.js is using jQuery.js.. Is it the proper sequence or do i need
alteration... plz reply as early as u can...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title><% if @artist %><%= @artist.name %> <%=
section_title(params[:controller]) %> : <% end %>DashGo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<%= stylesheet_link_tag "style" %>
<%= stylesheet_link_tag "print", :media => "print" %>
<link rel="icon" type="image/png" href="/images/favicon.png">
<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "jquery.color.js" %>
<%= javascript_include_tag "scripts" %>
<script>
jQuery.noConflict();
</script>
<%= javascript_include_tag 'prototype' %>
</head>
<body>
<%= yield %>
<%= render :partial => 'layouts/footer' %>
<%= render :partial => 'layouts/google_analytics' %>
</body>
</html>
thanks
>
>
> --
> 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
--
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
-~----------~----~----~----~------~----~------~--~---