Hi,
I have used "link_to_remote" helper quite many times as like:-
<%= link_to_remote "Q1", :url => { :controller =>
"", :action =>
"", :year => 2012 }, :update => ''div_name''
%> which is having source
as:-
<a onclick="new Ajax.Updater(''div_name'',
''/controller/action?year=2012'',
{asynchronous:true, evalScripts:true}); return false;"
href="#">«</a>
Today also i used the same syntax and semantic, but surprised to see
that same helper is giving me different source as:- <a
onclick="jQuery.ajax({data:'''',
success:function(request){jQuery(''div_name'').html(request);},
type:''post'',
url:''/controller/action?year=2012''}); return false;"
href="#">Q1</a>
I wondered how it came though and came to know that it is a matter of
conflicting jquery and prototype. But do not know how to resolved it as
i am using this:-
<%= javascript_include_tag :all, :recursive => true %>
Do you guys(Rubyities) have anything to give for this?
- Hemant Bhargava
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.