Hi Folks

Here is one solution:

<head>
<title>X</title>
<script language="JavaScript"><!--
function tree()
{
        window.left.location.href = "/cgi-bin/x.cgi?rm=display_left;sid=" +
window.right.form_name.sid.value;
}
//-->
</script>
</head>
        <frameset onLoad="tree()" cols="145,*">
                <frame name="left" src="about:blank">
                <frame name="right" src="/cgi-bin/x.cgi">
        </frameset>

Notes:
o The left frame is blank, at first
o The right frame runs the script, which generates the session id and
stores it in the hidden form variable sid within the right frame
o The frameset onLoad function then runs, and (in effect) moves the
sid from the right frame to the left frame, and then runs the script
to populate the left frame

In this way, 2 frames can share a session id.

This mechanism can be used, for example, where the cost of populating
the left frame is so large that you don't want to convert the 2 frames
to a table with 2 columns, because the latter structure requires
populating the left column of the table every time the right column is
refreshed.
--
Ron Savage, [EMAIL PROTECTED] on 6/07/2004. Room EF 312
Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia
Phone: +61-3-9251 7067, Fax: +61-3-9251 7604
http://www.deakin.edu.au/~rsav



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to