homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

Helping orphaned pages find their Parents
Surfers enter pages within a framed site.

10+ Year Member

Msg#: 1148 posted 2:30 am on Aug 26, 2002 (gmt 0)

Hi all,

We have a framed website and greatly regret it for the following reason. Visitors searching on keywords of course come in to the site via inward pages. We use Javascript to make sure that the orphaned page finds its frameset, the problem we have is that when the visitor tries to leave he/she can't because everytime they click the back button it redirects back to the same page. the javascript I use is as follows

<script type="text/javascript" language="JavaScript"><!--
if(top.location == self.location) {
self.location = 'framesets/widgets.com';
} //--></script>

Every page I create I have to crate a frameset page for and boy is it getting dull. Any ideas how I can get round this so that visitors can leave? I have a top,side and middle frame if this helps.



WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 1148 posted 3:32 am on Aug 26, 2002 (gmt 0)

The basic logic for this, and one way to implement it, is detailed in message #21 of our "Generic Javascript" thread in the Browsers and HTML Forum - specifically this post about forcing many pages into frames with one script [webmasterworld.com].

In practice, this can also be executed server-side, depending on what scripting you have available (we use jsp on the framed site I work with). However, the client side solution works pretty well for the average visitor.

The sample code posted uses only two frames, but it's easy enough to extend it to any configuration.


WebmasterWorld Senior Member fathom us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 1148 posted 5:45 am on Aug 26, 2002 (gmt 0)

Thanks tedster. However, you opened the door to another question.

From the thread you posted I found

Breaking your page free from another site's frames
<SCRIPT language="JavaScript"><!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
// --></SCRIPT>

A problem that is appearing (at least for me) is portals using content from external sites for their exclusive (subscription based) audiences. An external link is provided to these users and popped into a frame so that the user can return.

I don't mind people seeing and using content, but what I don't like is another company making money on what I offer for free, falsely indicating (through lack on advertised ownership) that this is their own development and without permission.

I have sent many emails politely asking:

1. free access to their portal (since they are using content for free to make revenue)

2. an external "public link" and acknowledgement of ownership, and

3. if one of the above is not satisfactory, removal of all links from there archives.

This is very problematic and time consuming to address though.

Will the above script work well to a avoid this non-permission misuse of web page content, and are there any other technical or display issues to be concerned with.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved