Results 1 to 3 of 3

Thread: Ajax Tabs - Cookies

  1. #1
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Ajax Tabs - Cookies

    1) Script Title:
    Ajax Tabs Content Script
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tent/index.htm
    3) Describe problem:

    When a user clicks on a tab (with persistence enabled) the javascript updates the session cookie with which tab has been clicked on.

    Can anyone give me the basic javascript to allow me to update that same cookie from a different page, to set the cookie back to the first tab.

    I have very little experience with javascript so i'm hoping this is an easy one.

  2. #2
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    Just worked out I'm not going to be able to do this with javascript,

    Could any give me a PHP script to update this cookie?

  3. #3
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    Don't worry, i sorted it.

    it was as simple as:

    PHP Code:
     setcookie("maintab"0); 

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
  •