FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-01-2000, 06:16 PM   Postid: 20816
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
872 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,221
how to "reframe" dynamically generated pages?

I use frames to center my directory (including cgi-generated pages like search results), but I run into a problem when pages are sometimes called directly without their framesets.  I want to use this simple code inside the head to reframe all 'body' pages when necessary, including cgi-generated pages:


Code Sample:

<script langugage=&quot;JavaScript&quot;>
if(window==top.window)
{top.window.location='http://myurl.com/frameset/index.shtm'}
</script>




But the next step is the hard one. I need to somehow call the resulting frameset so that the body will be the page they just came from:

Code Sample:

<FRAMESET>
<FRAME NAME=&quot;left&quot; SRC=&quot;left.htm&quot;>
<FRAME NAME=&quot;body&quot; SRC=&quot;WHERE THEY JUST CAME FROM&quot;>
<FRAME NAME=&quot;right&quot; SRC=&quot;right.htm&quot;>
</FRAMESET>




I thought I could do this using

Code Sample:

<!--#echo var='redirect_url'-->
or
<!--#echo var='HTTP-REFERER'-->



but this doesn't work since these seem to only be generated when a user clicks a link to the page, not by the javascript which results only in SSI generating (none)

Any ideas would be appreciated!

(I'm new to SSI and PHP as I couldn't use either on my old NT server.)
[This message has been edited by Jeff (edited 07-02-00@12:22 pm)]
Jeff is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:21 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.