/    Sign up×
Community /Pin to ProfileBookmark

Passing state variables to next page

I have a collection of pages, each containing a [url=http://forums.webdeveloper.com/showthread.php?s=&postid=181426#post181426]tree-menu[/url], and I want to be able to pass the state (which leaves are collapsed and which are expanded) to the new page when it is opened.

I am not using frames, so the last page will be closed when the next page is opened. Basically, each menu-item corresponds to a different page, and I wish the user to be able to collapse or expand the menu as desired.

Not sure if this should be posted in this forum, or the HTML forum, because it is probably some modification of the href command to call the next page.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@jdaviaApr 26.2004 — Wow!!!

This is how I see it.

The only way that I can see it done is to make a new page for every possibility of the clicked subdirectory opened. That can be many pages.


What ever combination of pages that can be clicked, you make a duplicate of it with your new information in it.

If you have 10 sub-menu's, that can be as many as 10 X 10 combinations or 100 pages. Forget it!!
Copy linkTweet thisAlerts:
@PittimannApr 26.2004 — Hi!

I put a little example online here: http://www.pit-r.de/scripts/treemenu/treeMenu.htm

Please note, replace the "x" in this line:

<a href="#" onclick="location.href='treeMenu1.htm?tree=x'+oldTree">File 2</a>

with something useful for you (maybe, you got an "x" somewhere in your path or file name).

Cheers - Pit
×

Success!

Help @Tiera spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...