Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 10-06-2004, 03: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?
 
Old 10-06-2004, 09:49 AM   #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.
sargorn is offline  
Old 10-06-2004, 04: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  
 

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


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 02:00 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73