/    Sign up×
Community /Pin to ProfileBookmark

Global variable across parent-child pages ?

Hi,

my case is the following:
I’ve got a js file named J with all kinds of functions that serves all my pages.
I’ve got an asp page named A that contains a second asp page named B which contains a html page named H.
page B has a button that refresh page H.
a parameter P is needed to load page H. I transfer the P parameter when I call page A and from it to page B and to page H.
Untill here all is going well.

when the user click the button on page B, the P pararmeter is suddenly empty and so loading page H is failing.

I thought of define a global parameter on my J file but when I assign it a value from page A, page B does not get it but an ‘undefine’ value.

how can I overcome this situation??

Thanks in advanced and sorry for the long story 🙂

Alon

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceFeb 15.2006 — Use ASP session variables.
Copy linkTweet thisAlerts:
@AlonRauthorFeb 15.2006 — Thanks.
×

Success!

Help @AlonR 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.19,
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,
)...