Displaying 1 result from an estimated 1 matches for "next_photo".
Did you mean:
net_proto
2006 Feb 03
0
component/ajax variable access problem
...ams[:context] == :home
@images = [''/images/1.jpg'', ''/images/2.jpg'']
else
@images = [''/images/test.gif'']
end
end
end
Component View:
<%
# p is always 0 when it comes in the first time...
photo = (params[:p]).to_i
next_photo = photo + 1
if !(photo == @images.length-1)
%>
<%= link_to_remote(image_tag(@images[next_photo], :size =>
"285x169"), :update =>''easel'',
:url => { :controller => ''/tiny_gallery/album'', :action =>
''show_photo'', :...