PHP and framing a site.

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

    PHP and framing a site.

    Hey all,

    Been working on a site and it's about 98% done now :) I'm having an
    issue where the site is framed with a about three <frameset>'s. Because
    of how I wanted it to scroll and where the main content was.

    Now my issue is this my navigation is in a frame of itself. I wanted
    to use like this:

    if ($page == "Home") {
    echo "<img src=\"../images/nav/ocalagrooming_0 3-over.png\"
    alt=\"Home\" width=\"148\" height=\"39\" align="top\" border=\"0\">";
    } else {
    echo "<a href=\"../index.php\" target=\"_top\"
    onmouseover=\"i mgOn('img1'); window.status=' Groomed to Perfection';
    return true\" onmouseout=\"im gOff('img1'); window.status=' '; return
    true\"><img
    src=\"../images/nav/ocalagrooming_0 3.png\" alt=\"Home\" width=\"148\"
    height=\"39\" align=\"top\" border=\"0\" name=\"img1\">< br /></a>";
    }

    Now on the page Home at the top it defines $page, problem is PHP
    doesn't see this because it's in separate frames! Any help on how to
    correct this or a right way?
    TIA
    --
    :: TJ::

  • Jerry Stuckle

    #2
    Re: PHP and framing a site.

    TJ Bright wrote:[color=blue]
    > Hey all,
    >
    > Been working on a site and it's about 98% done now :) I'm having an
    > issue where the site is framed with a about three <frameset>'s. Because
    > of how I wanted it to scroll and where the main content was.
    >
    > Now my issue is this my navigation is in a frame of itself. I wanted
    > to use like this:
    >
    > if ($page == "Home") {
    > echo "<img src=\"../images/nav/ocalagrooming_0 3-over.png\"
    > alt=\"Home\" width=\"148\" height=\"39\" align="top\" border=\"0\">";
    > } else {
    > echo "<a href=\"../index.php\" target=\"_top\"
    > onmouseover=\"i mgOn('img1'); window.status=' Groomed to Perfection';
    > return true\" onmouseout=\"im gOff('img1'); window.status=' '; return
    > true\"><img
    > src=\"../images/nav/ocalagrooming_0 3.png\" alt=\"Home\" width=\"148\"
    > height=\"39\" align=\"top\" border=\"0\" name=\"img1\">< br /></a>";
    > }
    >
    > Now on the page Home at the top it defines $page, problem is PHP doesn't
    > see this because it's in separate frames! Any help on how to correct
    > this or a right way?
    > TIA[/color]


    Don't use frames...




    Learn why frames are bad for gaining a good position in search engine results. Frames make link building and high rankings signinficantly harder.


    for starters...

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • Aaron Askew

      #3
      Re: PHP and framing a site.

      So is $page referring to what frame the page is in?

      Without destroying your model, you could define $page in the script
      where this if..else takes place or maybe use sessions.

      Communicating between frames is a pain and usually requires tons of
      javascript. Next go around, take the high road.

      -aaron

      Comment

      • TJ Bright

        #4
        Re: PHP and framing a site.

        Hello Jerry,

        I read every last one of those articles and was astounded as well as
        upset. I wish I'd of seen or known of these issues/problems a long time
        ago. I loved the frame layout becase if the cleanliness to it. I have
        no problem dropping the procedure for something more stable and less
        painstaking!



        On 2005-05-24 23:57:11 -0400, Jerry Stuckle <jstucklex@attg lobal.net> said:
        [color=blue]
        > Don't use frames...
        >
        > http://www.html-faq.com/htmlframes/?FramesAreEvil
        > http://karlcore.com/articles/article.php?id=2
        > http://www.discountdomainsuk.com/art...chived/9/688/1
        > http://www.search-marketing.info/traps/frames.htm
        >
        > for starters...[/color]


        --
        :: TJ::

        Comment

        Working...