Hello,
I want to display a effect.slidedown in a table.
I have a table called contactnotes.
<table>
<%@contactnotes.each do |contact|%>
<tr>
<td><%= link_to(@person.first_name, "#",
html_options={:onclick =>
"Effect.SlideDown(''show_details_of_contact_note''); return
false;"})%></td>
</tr>
...
<tr>
<div id="show_details_of_contact_note" style="display:none;
width:auto;
height:auto; background:#ccc; text-align:center;">
<div>
<% message = contact.message %>
</div>
</div>
<%end%>
</table>
When i click for the slidedown link The contents of the div i.e.
contact.message does not change as per the loop,.
Can anyone please help me.
--
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-/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
-~----------~----~----~----~------~----~------~--~---
On Jun 4, 7:02 pm, Ank Ag <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello, > I want to display a effect.slidedown in a table. > I have a table called contactnotes. > > <table> > <%...@contactnotes.each do |contact|%> > <tr> > <td><%= link_to(@person.first_name, "#", html_options={:onclick => > "Effect.SlideDown(''show_details_of_contact_note''); return > false;"})%></td>should be "new Effect.SlideDown ..."> </tr> > ... > <tr> > > <div id="show_details_of_contact_note" style="display:none; width:auto; > height:auto; background:#ccc; text-align:center;"> > <div> > > <% message = contact.message %> > </div> > </div> > > <%end%>It might not like the fact that you are not closing the <tr> above, and i believe it is also a requirement that a <tr> should only contain <td> elements. Fred --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
tml_options={:onclick =>>>
"Effect.SlideDown(''show_details_of_contact_note''); return
>> false;"})%></td>
>
> should be "new Effect.SlideDown ..."
>> </div>
>>
>> <%end%>
> It might not like the fact that you are not closing the <tr> above,
> and i believe it is also a requirement that a <tr> should only
contain
> <td> elements.
>
> Fred
hi,
Sorry that was a typing error.. I have closed the <tr> tag..
--
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-/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
-~----------~----~----~----~------~----~------~--~---