Solved

How to define a Target window with CFLOCATION tag?

Posted on 2001-06-11
5
412 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now