PHP and FRAMES/NOFRAMES question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fartsniff

    PHP and FRAMES/NOFRAMES question

    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><nofra mes></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

    #2
    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><?p hp 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.

    Comment

    Working...