I would do something like this.

Have a form with a hidden field that defaults a form variable (framesEnabled
= false)
Use Javascript to set framesEnabled = true if (self != top)
Submit the form using Javascript and voila, form.framesenabled will let you
know.

This is of course assuming that the user has Javascript turned on.



-----Original Message-----
From: Troy Montour <[EMAIL PROTECTED]> [mailto:Troy Montour
<[EMAIL PROTECTED]>]
Sent: Friday, January 04, 2002 10:27 AM
To: CF-Talk
Subject: cf frames question


Hello,
    sorry haven't had enough coffee this morning yet so I can't think of
what to use to do this.

I'm trying to detect frames which I figure javascript for that part
unless theres away with cold fusion but the problem is I need cold
fusion to know if there is frames and to set a global varible if there
is.

give you my situation maybe someone can give me an easyier solution.

we have a website that sells coins but also can have dealers that sell
coins and because of IE6 not excepting 3rd party cookies by default it
doesn't set the dealer var and defaults to main site which is bad cause
then the viewer is at the main site now and not the dealer site.

so I figue if I can detect the frames then set a dealer var every page
instead of passing it to every link a person can click on.

but problem I'm having is CF runs before javascript so I need to figure
out a way to detect the frames so I can set the dealer ID to know which
dealer this is.

Thanks in advance
Troy Montour


______________________________________________________________________
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

Reply via email to