<!--- make sure the frameset is loaded --->
<SCRIPT LANGUAGE="javascript">
if (self==parent)
{
document.write('<b>THIS IS A SECURE AREA</B>')
document.write('You will be transported to frames in a second')
document.write('<META HTTP-EQUIV="refresh" CONTENT="0;
URL=http://www.mydomain.com/index.cfm">')
}
</SCRIPT>
That script will redirect them to your original index.cfm page where you
would build your frameset. It would not account for the fuseaction.
However, you could set up a fuse that would build the frameset and load the
referring into your main window.
<SCRIPT LANGUAGE="javascript">
if (self==parent)
{
document.write('<b>THIS IS A SECURE AREA</B>')
document.write('You will be transported to frames in a second')
document.write('<META HTTP-EQUIV="refresh" CONTENT="0;
URL=http://www.mydomain.com/index.cfm?fuseaction=buildframe&url=<cfoutptu>#c
gi.http_referrer#</cfoutput>">')
}
</SCRIPT>
---- index.cfm ----
<cfcase value="buildframe">
<cfinclude template =
"frm_mainframeset.cfm?mainpage=<cfoutput>#attributes.url#</cfoutput>
</cfcase>
---- frameset ----
<frameset rows="1,495*" frameborder="NO" border="0" framespacing="0"
cols="*">
<frame name="topFrame" scrolling="NO" noresize src="dsp_topframe.cfm >
<frame name="mainFrame" src=<cfoutput>"#attributes.mainpage#"</cfoutput>
frameborder="NO" scrolling="AUTO">
</frameset>
That might not be the best way, but I would think it would work.
John Lucas
-----Original Message-----
From: Andrew Tollervey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 2:09 PM
To: Fusebox
Subject: Re: Fusebox, Fuseactions and Frames
Hello All!
I understand how fusebox and frames work. However, how do I get the fusebox
to recognise when a fuseaction has been processed outside the frames and
then redirected the user back into the frames while still keeping the
original fuseaction intact? If I type index.cfm after the domain name, the
frames are loaded as normal. However, if I type index.cfm?fuseaction=login
(or whatever) directly into the browser, the page gets loaded outside the
frames. Any ideas/solutions for this? Solving this problem would be very
handy for those people coming to a site from search engines who miss the
home page and go directly to a fuseaction page .
Thanks,
Andrew
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists