Click to See Complete Forum and Search --> : Pass variable to another document (or get from)


paulorlowski
03-26-2003, 06:57 PM
I want to pass a variable from one document to another.

An excel spreadsheet captures some real numbers named YTD and TODAY, and then is saved up to the web server as an html file called process.htm. The page is not necessarily ever opened.


I want the energy.htm page to get those two variables, YTD and TODAY from the process.htm. I then use those two variables in a javascript formula. It gives the appearance of a meter running where the speed of the meter is based on the relationship of the 2 variables.

I suppose I could include process.htm in energy.htm if that would help.

thx,
Paul Orlowski

khalidali63
03-26-2003, 07:20 PM
there could be multiple ways to get this done.
First thng that comes to mind is this.

create a frames page
the top frame would be energy.htm and bottom process.htm
make top frame take 100% space of the available window.
then from the top frame in the energy page put code like this

parent.frames[1].variablename

to get the global variable decalred in process.html

Hope this helps

Cheers

Khalid