11175
(-- --)
1
<%=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>
11175
(-- --)
2
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.
11175
(-- --)
3
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