RE: question

From: Martinez, Michael - CLC (michaelm@Carlson.com)
Date: Sat Dec 04 1999 - 01:24:35 EST


You can try a Frame Re-direction using JavsScript

This checks to see if the current document is loaded in a frame (top ==
self) and whether the parents second frame is named myframeset. If not then
the location of the top frame is redirected to the frameset.htm page with a
search property equal to the location of the current page (location.href):

<html>
<head>
<script type="text/javascript" language="JavaScript"><!--
if (top == self || (parent.frames[1].name != myframeset))
    top.location.href = 'frameset.htm?' + location.href;
//--></script>
</head>
<body>
...
</body>
</html>

************************************
* And then in frameset.htm *
************************************
 
<html>
<script type="text/javascript" language="JavaScript"><!--
document.write('<frameset cols="50%,50%">');
document.write('<frame src="' + (location.search ?
unescape(location.search.substring(1)):'default.htm') + '">');
document.write('<frame src="rightframe.htm" NAME="myframeset">');
document.write('<\/frameset>');
//--></script>
</html>
 
Of course, this will not work on all browsers. Will work with IE3+ and NN3+

Michael Martinez
Carlson Learning Company Technical Support
Phone: 612-212-2811 - Fax: 612-212-2815
Support: mailto:clctechnicalsupport@carlson.com
URL: http://www.carlsonlearning.com

> -----Original Message-----
> From: Ing. Juan Carlos Fernandez-B [SMTP:juan@linux.form-net.com]
> Sent: Thursday, December 02, 1999 11:57 PM
> To: msql-list@lists.hughes.com.au
> Subject: question
>
> okey guys
> here is a non msql question, but I think you could be up for the chalenge.
> ;-)
>
> is there a way to force a window to be a child always??
>
> I have a frame page and I want to avoid people to open child frame with
> open frame ina new page.
>
> any ideas?
>
>
> -------------------------------------------------------------------------
> To unsubscribe, go to http://www.Hughes.com.au/extras/email/
-------------------------------------------------------------------------
To unsubscribe, go to http://www.Hughes.com.au/extras/email/



This archive was generated by hypermail 2b30 : Mon Mar 04 2002 - 09:04:03 EST