It can be done using Javascript. I do this alot (the
coldfusion IF statement is just to allow me to turn
this off when I don't actually WANT frames...this will
force you into frames if you're not. The
window.location.href should point to the location of
the file that has the frames:
<script LANGUAGE="JavaScript">
<CFIF isdefined("ATTRIBUTES.detect_opening_frames") is
false>
if (parent.frames.length != 0) {
// loaded in frames
}
else {
// not loaded frames
window.location.href='http://#CGI.HTTP_HOST#/frames.cfm?attempted_location=#ATTRIBUTES.fuseaction#&#request.attributeslist#';
}
</CFIF>
</script>
-----Original Message-----
From: Yager, Brian T Contractor/NCCIM
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 2:39 PM
To: CF-Talk
Subject: Can you tell if a page is using frames...
Hello all,
Is there a function in CF that can tell if the page is
in a frame? If not, can
this be done using JavaScript?
Thanks,
Brian Yager
President - North AL Cold Fusion Users Group
Sr. Systems Analyst
NCCIM/CIC
[EMAIL PROTECTED]
(256) 842-8342
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists