Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP and FRAMES/NOFRAMES question

fartsniff
Guest
 
Posts: n/a
#1: Jul 16 '05
hello all,
i am using FRAMES on my PHP site, basically i am using just on frame
with the entire site inside. this is mainly for cosmetics so that
http://www.mydomain.com always is displayed in the address bar instead
of every single variable and value being passed ;) a cleaner look imo.

anyways, my index.htm looks like this:
<html>
<head>
<title>mydomain.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="100%,*" frameborder=no framespacing="0" border="0">
<frame src="/index.php" name="frame1" noresize>
<frame src="/index.htm">
</frameset><noframes></noframes>
<body>
</body>
</html>

the index.htm is the "default" document, but the real content starts with
index.php.

what is the best approach for using the NOFRAMES option so that if the
browser
isnt frames-friendly, that it goes back to the "old" way, i.e. just loading
up
index.php ?

would i just use a meta refresh 0 w/index.php in the NOFRAMES tag ? it's
hard
to test since all of my browsers like frames ;)

thanks all.



Justin Koivisto
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP and FRAMES/NOFRAMES question


fartsniff wrote:[color=blue]
> hello all,
> i am using FRAMES on my PHP site, basically i am using just on frame
> with the entire site inside. this is mainly for cosmetics so that
> http://www.mydomain.com always is displayed in the address bar instead
> of every single variable and value being passed ;) a cleaner look imo.
>
> anyways, my index.htm looks like this:
> <html>
> <head>
> <title>mydomain.com</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <frameset rows="100%,*" frameborder=no framespacing="0" border="0">
> <frame src="/index.php" name="frame1" noresize>
> <frame src="/index.htm">
> </frameset>[/color]

<noframes><?php include 'index.php'; ?></noframes>
[color=blue]
> <body>
> </body>
> </html>
>
> the index.htm is the "default" document, but the real content starts with
> index.php.
>
> what is the best approach for using the NOFRAMES option so that if the
> browser
> isnt frames-friendly, that it goes back to the "old" way, i.e. just loading
> up
> index.php ?
>
> would i just use a meta refresh 0 w/index.php in the NOFRAMES tag ? it's
> hard
> to test since all of my browsers like frames ;)[/color]

If the browser doesn't support frames, chances are it doesn't support
meta refresh either - see above

--
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.

Closed Thread


Similar PHP bytes