Forum Moderators: open

Message Too Old, No Replies

How do I "step out" of a framed page?

going to a non-framed page within the same window

         

Drumat5280

7:47 pm on Oct 15, 2004 (gmt 0)

10+ Year Member



If I have a framed page, let's say it has a top and a bottom frame - and i have a link on the bottom frame, when i click on that link in the bottom frame it takes me to the correct location but only within the bottom frame - which makes sense - however for one of my links on the bottom frame I would like it to go to the location without any frames within the same window - is there a way to do that?

bhartzer

7:50 pm on Oct 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use javascript framebuster code to jump the current page out of frames.

There's a discussion about it here [webmasterworld.com].

tedster

9:06 pm on Oct 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you add the attribute target="_top" to the anchor tag for a link, it will load that link in the same window and completely remove the frameset. A similar attribute, target="_blank" will load the linked document in a completely new window.

If you have the ability to change the mark-up in the framed document, the target attribute is the best way to go because it works even when javascript is turned off.

Drumat5280

9:35 pm on Oct 15, 2004 (gmt 0)

10+ Year Member



Thanks. I see that _top works, however i now have another problem, for some reason i have some trailing link info that is screwing up the page i am going to (without frames).

Here is the resulting link that is screwed up (non-framed page):

[myDomain.com...]

Here is the code that creates the link within the framed page:

<a "http://www.myDomain.com/admin/welcome.cfm?busid=<CFOUTPUT>#URL.busId#</CFOUTPUT>" target="_top">Welcome Screen</a>

This is the code that creates the framed page to begin with:

<FRAMESET COLS="100%,*">
<FRAME SRC="myPage.cfm?busid=<CFOUTPUT>#URL.busId#</cfoutput>>
<frame src="">
<frame src="empty.htm"></FRAMESET>
<noframes></noframes>

tedster

11:28 pm on Oct 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This looks like a ColdFusion issue - sorry, I barely know anything about it.

I assume you want just this much:

http://www.myDomain.com/admin/welcome.cfm?busid=13

However, your ColdFusion tag is adding the frame%20src as well, when you ask to include #URL.busId#

I'd look into that - the HTML is not the problem