Forum Moderators: coopster & phranque

Message Too Old, No Replies

Script to force frames?

         

Acternaweb

12:14 pm on Aug 6, 2001 (gmt 0)

10+ Year Member



Does anyone know a perl script that will "force frame?" I know there is a javascript that will do it, but it would be perfer to have a perl w/ssi,incase I make changes.

For example, is there a way to say any file/directory that has *.html requires index.html (the frameset)

Thanks,

sugarkane

4:56 pm on Aug 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I suppose you might be able do something with the referer environment variable, checking to see how the page was called and redirecting to the frameset if necessary, but to be honest I don't know how referer behaves in a frames context.

There would also be the potential for all sorts of problems if the referer variable isn't set (spiders, opera users), you could quite easily end up in an infinite loop (page sees there's no referrer info so redirects, still no referrer so it redirects again... etc)