Project

General

Profile

Presentation ยป demo_dynamic.html

demo demo, 2012-03-20 08:49

 
1
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
2
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 <% a = 1%>\par
3
\tab\tab\tab\tab <div class="imagebackgroundfordashboard" ><%= image_tag(FbGraph::User.new(limitChallenge.user_id).fetch.picture, :class => "fbimage", :onclick => "imageid();") %>\par
4
\tab\tab\tab\tab   <%limitChallenge.child_challenges.each do |chaild|%>\par
5
\tab\tab\tab\tab\tab <%= image_tag(FbGraph::User.new(chaild.user_id).fetch.picture, :class => "fbimage", :id => "fbimage<%=a%>", :onclick => "imageid_#\{a\}();"  ) %>\par
6
\tab\tab\tab\tab\tab <% a =+a %>&nbsp;\par
7
\tab\tab\tab\tab\tab <script>\par
8
\tab\tab\tab\tab\tab function imageid_#\{a\}()\par
9
\tab\tab\tab\tab\tab\{ \par
10
\tab\tab\tab\tab\tab     \par
11
\tab\tab\tab\tab\tab\tab    alert(" <%=chaild.user_id_#\{a\}%> ");\par
12
\tab\tab\tab\tab\tab\}\par
13
\tab\tab\tab\tab\tab </script>\par
14
\tab\tab\tab\tab <%end%></div>\par
15
\tab\tab\tab\tab <script>\par
16
\tab\tab\tab\tab\tab\tab function imageid()\{  alert(" <%=limitChallenge.user_id%> ");\}\par
17
\tab\tab\tab\tab\tab\tab\par
18
\tab\tab\tab\tab </script>\par
19
}
20

    (1-1/1)