Tilted Forum Project Discussion Community

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology
New! Use your Facebook, Google, AIM & Yahoo accounts to securely log into this site, click logo to login  
Register Register Blogs Members List Mark Forums Read

Reply
 
LinkBack Thread Tools
Old 10-06-2004, 04:10 AM   #1 (permalink)
zen_tom
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?
  Reply With Quote
Old 10-06-2004, 10:49 AM   #2 (permalink)
Rookie
 
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.
sargorn is offline   Reply With Quote
Old 10-06-2004, 05:51 PM   #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.
SinisterMotives is offline   Reply With Quote
Reply

Bookmarks

Tags
frames, load, pages, set, web or php

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:05 PM.

Contact Us - Tilted Forum Project - Archive - Top

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
All text © 2002-2009 Tilted Forum Project
"Insignia" vBulletin 3.5 - b6gm6n - x7x7x7.com