PDA

View Full Version : Dynamic persistence



jc_gmk
10-08-2007, 09:57 AM
1) Script Title: Ajax Tabs Content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Describe problem:
Can i change the persistence of this script based on where the user clicks?
e.g.
If the user clicks on a link in the drop down menu it will disable the persistence
and if the user click on one of the tabs it will enable the persistence

need to change "var enabletabpersistence=0" to "var enabletabpersistence=1" depending on the link clicked.

Maybe onClick=, ?
sorry i'm not too good at javascript

jc_gmk
10-08-2007, 03:41 PM
I'm still looking to solve this problem though i have narrowed it down somewhat.

All i need the answer to now is:

Can I click on a tab to change a variable on the current page?

As the tab does not reload the page i cannot use $_GET['something'];

Is there anything else I can use? Javascript?