View Full Version : Ajax Tabs - Cookies

10-12-2007, 07:55 AM
1) Script Title:
Ajax Tabs Content Script
2) Script URL (on DD):
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.

10-12-2007, 08:11 AM
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?

10-12-2007, 08:37 AM
Don't worry, i sorted it.

it was as simple as:

setcookie("maintab", 0);