Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-17-2012, 09:09 AM   PM User | #1
toplisek
Regular Coder

 
Join Date: May 2006
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
toplisek has a little shameless behaviour in the past
Question How to set session based Hide/show message notice?

I have set Javascript function to Expand or Collapse my messages.

PHP Code:


<div onclick="javascript:js_message.expcollap();" style="">&nbsp;</div>

<
button id="show">Show</button>


<
script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
var js_message = {expcollap:function () {$("#message_notice").click(function(){$("div").hide(1000);});$("#show").click(function(){$("div").show();});
}}
/*]]>*/
</script> 
How to set session value that user will see this message only once even he visits page twice (back button or click on the same URL).
toplisek is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:33 PM.


Advertisement
Log in to turn off these ads.