Multi-page javascript.

T

theseer

I need to create an application where I need to obtain variables from
one page and pass that to a javascript function on another. Is it
possible to pass variables from one page into a JS function on
another?

If not, how do I simulate another page within the same page?

Apologies for the strange phrasing and repetition above. ;)
 
S

Simon Brooke

in message <[email protected]>,
I need to create an application where I need to obtain variables from
one page and pass that to a javascript function on another. Is it
possible to pass variables from one page into a JS function on
another?

Construct a URL with a query part containing the variables you want to pass
in the 'from' page to link to the 'to' page. In the 'to' page, parse the
variables out.
If not, how do I simulate another page within the same page?

Is an IFRAME what you need? I wouldn't particularly recommend using one,
the first solution is better.
 
L

-Lost

I need to create an application where I need to obtain variables from
one page and pass that to a javascript function on another. Is it
possible to pass variables from one page into a JS function on
another?

If not, how do I simulate another page within the same page?

Apologies for the strange phrasing and repetition above. ;)

http://jibbering.com/faq/#FAQ4_37

Then use location.search in any fashion you see fit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top