Hi all,

I want to share data between two frames. My object should be a php script
(if possible).
The object should know (using a session variable) which id is currently
displayed in each frame.
This way, the object can decide if the frame should be refreshed or not,
because it knows what ID already is being displayed.
Are there any examples on how to do this? Am I looking in the wrong
direction? Is there another solution?

Ronald


From the [url]www.w3.org[/url] specification on
[url]http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#sharing-frame-data[/url]

Sharing data among frames

Authors may share data among several frames by including this data via an
OBJECT element. Authors should include the OBJECT element in the HEAD
element of a frameset doent and name it with the id attribute. Any
doent that is the contents of a frame in the frameset may refer to this
identifier.
The following example illustrates how a script might refer to an OBJECT
element defined for an entire frameset:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/REC-html40/frameset.dtd">
<HTML>
<HEAD>
<TITLE>This is a frameset with OBJECT in the HEAD</TITLE>
<!-- This OBJECT is not rendered! -->
<OBJECT id="myobject" data="data.bar"></OBJECT>
</HEAD>
<FRAMESET>
<FRAME src="bianca.html" name="bianca">
</FRAMESET>
</HTML>

<!-- In bianca.html -->
<HTML>
<HEAD>
<TITLE>Bianca's page</TITLE>
</HEAD>
<BODY>
...the beginning of the doent...
<P>
<SCRIPT type="text/javascript">
parent.myobject.myproperty
</SCRIPT>
...the rest of the doent...
</BODY>
</HTML>