HighDots Forums  

javascript frameset escape help please?

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss javascript frameset escape help please? in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
C.W.
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 03:57 AM






On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk>
wrote:

Quote:
You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?
There's a javascript you can put on every page apparently which get's
you out of this.
[snip]

This is the break out of frames script I use:

<head>

<script type="text/javascript">
if (self.location != top.location) {
top.location = self.location;
}
</script>

</head>


Carol


Reply With Quote
  #2  
Old   
C.W.
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 04:01 AM






On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk>
wrote:

Quote:
You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?
Wait - you want to get back into the frames?

Hrm, I misunderstood ya the first time around.

Carol



Reply With Quote
  #3  
Old   
Jan Harders
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 04:17 AM



C.W. <from_you (AT) nomail (DOT) com> typed:
Quote:
On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:
You know you can get trapped when you link in to a page that turns
out to be in a framed site and because you're supposed to enter
through the frames you can navigate out using the frame navigation
but you can't because you're stuck on the page itself, naked (the
page, not you - probably)?
There's a javascript you can put on every page apparently which get's
you out of this.
[snip]

This is the break out of frames script I use:

head

script type="text/javascript"
if (self.location != top.location) {
top.location = self.location;
}
/script

/head
I'd extend that with a server-side script that takes the requested file as
argument and prints a frameset with that file in the content frame.
that js-code would be something like
if (self.location != top.location) {
top.location.href =
http://mydomain.invalid/cgi-bin/fram...tion.pathname;
}

the framebuild.pl would be something like this:
#!/usr/bin/perl -w
use strict;
use CGI qw/-no_debug :all/;
my $query = new CGI;
my %params = $query->Vars;

print qq~Content-type: text/html

your frameset code starts here - leave that blank line
$params{'page'} has the original page, e.g. <frame src="$params{'page'}"
name="content">
~;
# make sure you don't forget the ~;




Reply With Quote
  #4  
Old   
Big Bill
 
Posts: n/a

Default javascript frameset escape help please? - 07-07-2004 , 04:33 AM



You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?
There's a javascript you can put on every page apparently which get's
you out of this. I had it in front of me a while back and I thought,
shall I keep this? And then I thought, Nah! I won't need it! It could
well be that I still won't as let's face it a discreet link on each
page will do the job but I want to examine my options. Anyone know the
code I'm talking about please? Otherwise I'll have to brave all those
juvenile pratts in the html group. I'm not really in the mood for
know-it-all wankers today.

BB

Reply With Quote
  #5  
Old   
C.W.
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 06:40 AM



On Wed, 07 Jul 2004 11:32:52 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk>
wrote:

Quote:
On Wed, 07 Jul 2004 08:01:38 GMT, C.W. <from_you (AT) nomail (DOT) com> wrote:

On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:

You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?

Wait - you want to get back into the frames?

Hrm, I misunderstood ya the first time around.

Carol

Oh dear. Best out of three?
Well - just in case; I looked up these two URLs for you to look over:

http://www.technorealm.co.uk/scripts/backtoframes.html

http://www.webmasterworld.com/forum91/16.htm

It'll give you a start if nothing else. Sorry - I am not very
knowledgeable about JS stuff :/

Carol


Reply With Quote
  #6  
Old   
Big Bill
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 07:32 AM



On Wed, 07 Jul 2004 07:57:33 GMT, C.W. <from_you (AT) nomail (DOT) com> wrote:

Quote:
On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:

You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?
There's a javascript you can put on every page apparently which get's
you out of this.
[snip]

This is the break out of frames script I use:

head

script type="text/javascript"
if (self.location != top.location) {
top.location = self.location;
}
/script

/head


Carol
Many thanks CW.

BB


Reply With Quote
  #7  
Old   
Big Bill
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 07:32 AM



On Wed, 7 Jul 2004 10:17:09 +0200, "Jan Harders" <janh (AT) hitservice (DOT) net>
wrote:

Quote:
C.W. <from_you (AT) nomail (DOT) com> typed:
On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:
You know you can get trapped when you link in to a page that turns
out to be in a framed site and because you're supposed to enter
through the frames you can navigate out using the frame navigation
but you can't because you're stuck on the page itself, naked (the
page, not you - probably)?
There's a javascript you can put on every page apparently which get's
you out of this.
[snip]

This is the break out of frames script I use:

head

script type="text/javascript"
if (self.location != top.location) {
top.location = self.location;
}
/script

/head

I'd extend that with a server-side script that takes the requested file as
argument and prints a frameset with that file in the content frame.
that js-code would be something like
if (self.location != top.location) {
top.location.href =
http://mydomain.invalid/cgi-bin/fram...tion.pathname;
}

the framebuild.pl would be something like this:
#!/usr/bin/perl -w
use strict;
use CGI qw/-no_debug :all/;
my $query = new CGI;
my %params = $query->Vars;

print qq~Content-type: text/html

your frameset code starts here - leave that blank line
$params{'page'} has the original page, e.g. <frame src="$params{'page'}"
name="content"
~;
# make sure you don't forget the ~;
Many thanks (I think) <whispers>Wha'd he say?</whispers>

BB



Reply With Quote
  #8  
Old   
Big Bill
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 07:32 AM



On Wed, 07 Jul 2004 08:01:38 GMT, C.W. <from_you (AT) nomail (DOT) com> wrote:

Quote:
On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:

You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?

Wait - you want to get back into the frames?

Hrm, I misunderstood ya the first time around.

Carol
Oh dear. Best out of three?

BB


Reply With Quote
  #9  
Old   
Big Bill
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 03:51 PM



On Wed, 07 Jul 2004 10:40:45 GMT, C.W. <from_you (AT) nomail (DOT) com> wrote:

Quote:
On Wed, 07 Jul 2004 11:32:52 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:

On Wed, 07 Jul 2004 08:01:38 GMT, C.W. <from_you (AT) nomail (DOT) com> wrote:

On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:

You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?

Wait - you want to get back into the frames?

Hrm, I misunderstood ya the first time around.

Carol

Oh dear. Best out of three?

Well - just in case; I looked up these two URLs for you to look over:

http://www.technorealm.co.uk/scripts/backtoframes.html
Doesn't exist anymore.
Members only. Sniff.

BB

Quote:
It'll give you a start if nothing else. Sorry - I am not very
knowledgeable about JS stuff :/

Carol


Reply With Quote
  #10  
Old   
C.W.
 
Posts: n/a

Default Re: javascript frameset escape help please? - 07-07-2004 , 06:28 PM



On Wed, 07 Jul 2004 19:51:25 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk>
wrote:

Quote:
On Wed, 07 Jul 2004 10:40:45 GMT, C.W. <from_you (AT) nomail (DOT) com> wrote:

On Wed, 07 Jul 2004 11:32:52 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:

On Wed, 07 Jul 2004 08:01:38 GMT, C.W. <from_you (AT) nomail (DOT) com> wrote:

On Wed, 07 Jul 2004 08:33:50 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk
wrote:

You know you can get trapped when you link in to a page that turns out
to be in a framed site and because you're supposed to enter through
the frames you can navigate out using the frame navigation but you
can't because you're stuck on the page itself, naked (the page, not
you - probably)?

Wait - you want to get back into the frames?

Hrm, I misunderstood ya the first time around.

Carol

Oh dear. Best out of three?

Well - just in case; I looked up these two URLs for you to look over:

http://www.technorealm.co.uk/scripts/backtoframes.html

Doesn't exist anymore.

http://www.webmasterworld.com/forum91/16.htm

Members only. Sniff.

[snip]
Bill,

Send me an email to this addie [remove the 'no'] and I will send you
the info off the pages that way. I'll help you out anyway I can.

Carol



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.