?
Solved

How to define a Target window with CFLOCATION tag?

Posted on 2001-06-11
5
Medium Priority
?
446 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 150 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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

719 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