Solved

How to define a Target window with CFLOCATION tag?

Posted on 2001-06-11
5
431 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.

738 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