Solved

How to define a Target window with CFLOCATION tag?

Posted on 2001-06-11
5
420 Views
Last Modified: 2013-12-24
It's because my calling page featuring the cflocation tag is in a frame and the URL is targeting a page that should open as "_top".
I know I could install a frame buster javascript in the second page (to force the opening in a full page) but I was wondering if there was no easier way with some Coldfusion code in the calling page?

Thank you.
Ernest
0
Comment
Question by:ErnestLefriteur
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Yog
ID: 6178455
Yep..

cflocation , Response.redirect etc will direct to another page at the server end . But inorder to deal with frames, u gotta use Javascript only. No other go i guess..maybe wait for the board if someone knows any alternative. If u want help with Javascript tell me

Cheers.
0
 

Author Comment

by:ErnestLefriteur
ID: 6179177
I'll wait to see if something else shows up otherwise I'll get your script for the 50 points.

Ernest
0
 

Author Comment

by:ErnestLefriteur
ID: 6233222
Sorry Yog, I was away for some time.

Ok, as I see there is no other solutions, please advise the javascript code for the 50 points.
0
 
LVL 5

Accepted Solution

by:
Yog earned 50 total points
ID: 6233641
hi, cool mate..

A simple transfer will look like this..just an example here..but if you tell how your frameset looks and from which frame you need to do , we will modify accodingly..

example
<html>
<head>

<script type="text/javascript" language="JavaScript"><!--
if (top == self || (parent.frames[1].name != myframeset))
    top.location.href = 'frameset.htm?' + location.href;
//--></script>

</head>
<body>

frameset.htm will be
<html>

<script type="text/javascript" language="JavaScript"><!--
document.write('<frameset cols="50%,50%">');
document.write('<frame src="' + (location.search ? unescape(location.search.substring(1)):'default.htm') + '">');
document.write('<frame src="rightframe.htm" NAME="myframeset">');
document.write('<\/frameset>');
//--></script>

</html>

cheers..

so if i know your frame structure..we wll change..

cheers
0
 

Author Comment

by:ErnestLefriteur
ID: 6234829
Tks Yog, it'll be ok like this.
Cheers.

Ernest
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Script 12 175
How to solve ssl error handshake failure alert on IE 1 236
htaccess restrict subdomain 4 132
DNS, website, godaddy 6 90
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question