posted by [identity profile] calatrice.livejournal.com at 01:15pm on 10/08/2004
I haven't done the frames redirect trick for years now, but one thing that used to catch me out on a regular basis is that the redirection script I had used to only work if the pages were on a webserver. According to Gav this is something to do with the difference between accessing the page via the http protocol and just reading it off your hard drive.

I'm not sure if this still holds true, but essentially if the pages were on a boring old PC, then Windows would not pass the part of the url after the '?' in the script in the content page. Hence the script would never pick up the bit about displaying the desired content page within the frameset.

This typically resulted in me puzzling over the pages for hours before I remembered to try an uploaded version.

The script I used to use had two parts - one in the content pages that you wanted to put in the frameset and a second one in the frameset page which dynamically drew the frameset. You can find an example here:

http://www.chalcedony.com/javascript3e/scripts/script04.03.html

Incidentally, I would really recommend the book - "JavaScript for the World Wide Web". I've used it a lot over the years (I have the third edition) and find it really helpful, especially as I'm not a very good programmer.
 
posted by [identity profile] red-cloud.livejournal.com at 05:36pm on 10/08/2004
I concur. This is the canonical example from Negrino & Smith (http://www.amazon.co.uk/exec/obidos/ASIN/032119439X/oakhouse-21). It does exactly what it says on the tin.
 
posted by [identity profile] bugshaw.livejournal.com at 11:31pm on 10/08/2004
Ahhhh-HA! When in doubt, ask the CAL9000. That looks very much like The Thing - plus the web vs hard drive thing.

Bleugh - not enough sleep. Must go to work. More thanks later once suggestions implemented!

September

SunMonTueWedThuFriSat
  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