Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > visual effect for the div

Reply
Thread Tools

visual effect for the div

 
 
Ravi Dtv
Guest
Posts: n/a
 
      05-19-2010
Hi

In a partial,

I display "group_name" , when clicked on groupname the div with id="abc"
should appear below my group.

I want to make my div visible false initially at the time of loading my
page and Once click on the groupname I the div should be visible below
the groupname.

I tried with follwing code. But I div is visible every time and only
the visual_effect is applying to the first grouname only.

Please help. Thanks.

<div class="profile_text_details float_left">
<h5 class="page_heading">

<%= link_to_function user.group_name,
visual_effect(:grow,"abc",:direction => "center",:duration => 1) , {
:controller => "users" ,:action => "grouplist" } %>

</h5>

</div>

<div id="abc">

<tr>
<td class="people_profile">

<div class="clear_float_effect">

<% @currentgroupfriends.each do |user| %>
<h6 class="page_heading"><%= user.login %></h6>
<% end %>


</div></tr>
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Piyush Ranjan
Guest
Posts: n/a
 
      05-19-2010
[Note: parts of this message were removed to make it a legal post.]

please do not ask Rails questions here. This is ruby mailing list and NOT
rails.


On Wed, May 19, 2010 at 5:42 PM, Ravi Dtv
<(E-Mail Removed)>wrote:

> Hi
>
> In a partial,
>
> I display "group_name" , when clicked on groupname the div with id="abc"
> should appear below my group.
>
> I want to make my div visible false initially at the time of loading my
> page and Once click on the groupname I the div should be visible below
> the groupname.
>
> I tried with follwing code. But I div is visible every time and only
> the visual_effect is applying to the first grouname only.
>
> Please help. Thanks.
>
> <div class="profile_text_details float_left">
> <h5 class="page_heading">
>
> <%= link_to_function user.group_name,
> visual_effect(:grow,"abc",:direction => "center",:duration => 1) , {
> :controller => "users" ,:action => "grouplist" } %>
>
> </h5>
>
> </div>
>
> <div id="abc">
>
> <tr>
> <td class="people_profile">
>
> <div class="clear_float_effect">
>
> <% @currentgroupfriends.each do |user| %>
> <h6 class="page_heading"><%= user.login %></h6>
> <% end %>
>
>
> </div></tr>
> --
> Posted via http://www.ruby-forum.com/.
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
DIV background-repeat background-image? For shadow effect jc ASP .Net 3 03-19-2008 04:19 PM
DIV background-repeat background-image for shadowing effect jc HTML 1 03-19-2008 02:16 PM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM



Advertisments