Solved

Drop down panel with ajax only first time on load

Posted on 2014-09-27
3
164 Views
Last Modified: 2014-11-05
I want to use ajax to create a panel that will drop down at the top of my web page when it loads the first time but then would not show for subsequent loads.

I want to put up a welcome message for previous users to tell them how to get to old things they may be used to looking for.   But then if you reload the page that panel would not appear. So basically only appear once per session.

I believe it could be done using ajax and the onload command and I could spent some time figuring out how to do it but if someone can give me a few quick insights of where to start my self training or can provide a sample of someplace that does this with jQuery that would be great.

Thanks.
0
Comment
Question by:pkonstan1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 175 total points
ID: 40347738
On first load check for a cookie, if it doesn't exist then show the panel and set a cookie

http://www.w3schools.com/js/js_cookies.asp
0
 
LVL 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 325 total points
ID: 40347772
This article shows the general design pattern.  There is no need to use AJAX, (because AJAX is about seamless client/server communication) but there would be nothing to prevent you from using AJAX.
http://www.experts-exchange.com/Programming/Languages/Scripting/PHP/A_3314-How-to-Show-an-Introductory-Web-Page-Once-Using-PHP.html

The general design pattern for jQuery / AJAX requests is shown here.
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Jquery/A_10712-The-Hello-World-Exercise-with-jQuery-and-PHP.html
0
 

Author Closing Comment

by:pkonstan1
ID: 40424836
Good answers that provide a good starting point for me to nail this down. Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question