Hey all,
I have a problem. I have a page ('index.htm') which contains, among other
things, an iframe. I load a cfm page ('redirect.cfm') in this iframe. The page
'redirect.cfm' redirects to an outside page which is not under my control. What
I'd like to do is have the outside page see my redirect page as the referer.
The way I tried to do it initially was using a cflocation tag in the redirect
.. however, this leaves index.htm as the referer, and not my redirecting cfm.
Any ideas why it does this?
Then, I tried to use cfhttp get to get the outside page and output filecontent
in my iframe. This makes the referer blank, but this doesn't solve my problem
as I'd like it to show redirect.cfm as the referer. Also, I don't have control
over the outside page and sometimes the page doesn't display correctly within
the iframe when I use cfhttp get. I tried setting 'resolveurl = yes' in cfhttp,
but that doesn't help, because of the way the outside page is coded.
Does anyone know how to solve this problem? Basically, I am looking for
something that would let me call my redirect page within the iframe, and have
the redirect page be the referer to the outside page.
Any help/suggestions would be greatly appreciated.
Thanks,
~Jai.
blewis - 29 Sep 2004 19:32 GMT
I have not tested this, but have you thought of using a META REFRESH tag inside the redirect.cfm instead of using CFLOCATION? This may work...but I have not tested it.
Bryan
thejaifactor - 29 Sep 2004 19:52 GMT
Thanks for replying.. I just tried that and it didn't change anything. The
referer still remains as index.htm. I am wondering whether this has something
to do with how browsers treat iframes, but I really don't know.