Solved

How to define a Target window with CFLOCATION tag?

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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