<%=javascript_include_tag :defaults %>
<script type="text/javascript">
function show()
{
new Effect.toggle($(''show''),''blind'');
}
</script>
 <li><A HREF="#"
onClick="show();">show</A> </li>
  <div id="show" style="display:none">
     //something here
  </div>
------------------
now if i click show link then the div "show" is shown
at now if i click refresh button then its not shown
what should i do to show div "show"  after refreshing.
any idea or is there any plugin  ?
pls help.
-- 
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
-~----------~----~----~----~------~----~------~--~---
> now if i click show link then the div "show" is shown > at now if i click refresh button then its not shown > > what should i do to show div "show" after refreshing. > > any idea or is there any plugin ? > > pls help.if it is decided that the div is shown / not shown per user basis, it calls for a session implementation session[''shown''] or whatever although there may be some cheaper trick. -- 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 -~----------~----~----~----~------~----~------~--~---
Shai Rosenfeld wrote:> if it is decided that the div is shown / not shown per user basis, it > calls for a session implementation > > session[''shown''] or whatever > > although there may be some cheaper trick.how to manage that ? is it Rails session or any other ? can you show a simple example solution ?\ thank you -- 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 -~----------~----~----~----~------~----~------~--~---