wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
2006-Dec-04 19:28 UTC
lint_to_remote for image
I have some simple code so that when you click on a thumbnail,
it''s supposed to display the image enlarged in the enlargement area.
The page looks right, but when you click on a thumb nothing happens, it
just moves up the page. Why is the href=# happening ? The generated
html comes after the sample rhtml
<%= image_tag @enlargement, :width => "279", :height =>
"200" %>
<% @images.each do |img|%>
<% itag = "#{img[:thumb_path]}" %>
<% puts "HR: #{itag}" %>
<%= link_to_remote image_tag ("#{itag}"),
{:update => "enlargement",
:url => {:controller => "reunion",
:action
=> "enlargement", :id => 0}
}
%>
<% end %>
<a href="#" onclick="new
Ajax.Updater(''enlargement'',
''/reunion/enlargement/0'', {asynchronous:true,
evalScripts:true});
return false;"><img alt="Thumb_4094"
src="/images/admin/content/home/pages/thumb_4094.jpg?1165028402"
/></a>
<a href="#" onclick="new
Ajax.Updater(''enlargement'',
''/reunion/enlargement/0'', {asynchronous:true,
evalScripts:true});
return false;"><img alt="Thumb_4095"
src="/images/admin/content/home/pages/thumb_4095.jpg?1165028402"
/></a>
<a href="#" onclick="new
Ajax.Updater(''enlargement'',
''/reunion/enlargement/0'', {asynchronous:true,
evalScripts:true});
return false;"><img alt="Thumb_4096"
src="/images/admin/content/home/pages/thumb_4096.jpg?1165028402"
/></a>
<a href="#" onclick="new
Ajax.Updater(''enlargement'',
''/reunion/enlargement/0'', {asynchronous:true,
evalScripts:true});
return false;"><img alt="Thumb_4097"
src="/images/admin/content/home/pages/thumb_4097.jpg?1165028403"
/></a>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
