thanks for the informitave link. I've got it somewhat, but I am still having
some problems.
I made a test page with two frames. The top frame defines three variables,
and the botom frame retrives these variables from the other frame and
displays them. here is the test page:
http://alex.hunter.home.comcast.net/test
It works sometimes, but other times the variables show up as "undefined" on
the bottom frame. reloading the page cycles it between working and not
working. Does anyone have any ideas why it would only work sometimes? I
have tested on Mac OS X with IE and netscape.
any feedback would be apreciated.
thanks,
Alex Hunter
On Wed, 15 Oct 2003 18:21:41 -0400, Lasse Reichstein Nielsen wrote
(in message <3c**********@hotpop.com>):
Alex Hunter <al********@attbi.com> writes:
Is it possible for one page to access a variable (or text) from another
page
or frame?
Yes, if you have a reference to the other page (or frame, but frames
are easy to get a reference to if you are in the same window).
How is this done?
Try reading this:
<URL:http://www.infimum.dk/HTML/JSwindows.html#ref_2_6>
I hope it is informative enough.
Both pages could be open in a frameset. I have no idea how to do this,
Having two frames, or accessing data across them?
Is it possible?
Absolutely.
Could a javascript access a text file on the server and post
this into a page? Any ideas?
That is harder. Not all browsers have an easy way to access an
arbitrary file on the server. One solution is to load the file into a
hidden iframe and then use DOM methods to extract the text.
/L