![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
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] |
#2
| |||
| |||
|
|
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)? |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
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? |
#6
| |||
| |||
|
|
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 |
#7
| |||
| |||
|
|
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 ~; |
#8
| |||
| |||
|
|
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 |
#9
| |||
| |||
|
|
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 |
|
It'll give you a start if nothing else. Sorry - I am not very knowledgeable about JS stuff :/ Carol |
#10
| |||
| |||
|
|
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] |
I'll help you out anyway I can.![]() |
| Thread Tools | |
| Display Modes | |
| |