SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    essex, england
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery and cookies - only showing effect once per user

    I'm trying to work out how to show a modal box on entry to my site and then have it set a cookie (that lasts longer than just the session) so that it doesn't show for that user again (as long as the cookies there obviously)

    My site uses cookies (generated with php) for other things, can i add an entry to that cookie or should i add a new one? If i should add a new one (and in fact adding to the existing one) how do do this with jquery and then check against it?

    I'm pretty new to js and jquery so i'm finding myself a bit overwhelmed with it to be honest.

    Any advice would be fantastic.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    essex, england
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That looks simple enough!

    Thank you!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •