![]() |
![]() |
#1 (permalink) |
Guest
|
[web/php] How do I load my pages into a set of frames?
I've had a website for a while now, and I'm kind of happy as to how it's turning out. For various reasons however, it's stored on two separate servers. The reason for this is that one server has the domain name, while the other one is provided by my ISP to run CGI on.
So, I've moved away from home, and no-longer have update access to the original site. Before I left, I set up a php program to allow me to sign in and update via the php. (It's a blogging tool called Pivot) So now, I'm able to make updates while I'm away. Now the problem is, since it is the CGI server that is now getting hits from google, people are arriving directly at the 'naked' blog-pages - which means that they don't get the framed navigation and layout that they'd get if they'd navigated in from the front. My question is; How do I get each page to check whether it's being viewed within it's correct frameset and reload itself if it's being viewed naked? |
![]() |
#2 (permalink) |
Upright
Location: .au
|
Honestly, I'd simply add a link/button on each page allowing the user to click out to the page with the frames.
But, if you want the really annoying behaviour of reloading the page; change the body tags; <body onLoad="checkFrames();'"> and some javascript; function checkFrames(){ if(top==self){ self.location.href = 'http://.../whatever.html'; } } hth. and works. ![]() |
![]() |
![]() |
#3 (permalink) |
Junkie
|
There's a script out there similar to Sargorn's that supposedly loads the exact page they were viewing (as opposed to the page specified by the frame's SRC attribute), but I could never get it to work correctly. You might find it on one of the cut and paste JavaScript sites and see if you can do anything with it.
|
![]() |
Tags |
frames, load, pages, set, web or php |
|
|