Problems with Firefox and Netscape

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agf2309
    New Member
    • May 2007
    • 3

    Problems with Firefox and Netscape

    Hi all,

    I'm fairly new to the PHP side of things, so I'm sorry if this is a blatantly silly question.

    I've built a site that works perfectly in IE and Opera. However it won't display properly in either netscape or Firefox. The Home page shows up fine, but if you follow any links you get the logo and menu, but everything else doesn't render.

    The Page View option shows up all the necessary code etc so I don't understand why it's not showing. I initially thought that it may be a problem with the HTML, but I've validated a page or two and it's still not showing.

    Is there something major I'm missing?

    The site is www.ticketsirel and.ie

    Thanks in advance

    Tony.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    PHP is executed server-side, which means it never interacts with your browser. Any problems different browser might have with your web, must be a problem with the HTML.

    I checked out the source of your newbookin.php page on the page you mentioned. There were a couple of errors you might want to check out.

    Firstly, you open a <script> for a Javascrip function.
    [Code=html]
    <SCRIPT type=text/javaScript>
    <!--
    // Function is here
    </SCRIPT>
    [/CODE]
    The script tag is missing a "language='java script'" parameter. I'm not sure if that matter much but it might if standars are to be followed.

    Parameter values should reside inside quote marks. In HTML this was not required, but in XHTML it is, atleast according to the standard.

    You also open a <!-- HTML comment without closing it, which would comment out every line of HTML that follows. You might want to change that to look somewhat like this
    [CODE=html]
    <script language="javas cript" type="text/javascript">
    <!-- To comment out scripts in old browsers
    // Your function here
    -->
    </script>
    [/CODE]

    I would also refrain from giving any element in my script the ID "body". It probbly wont matter but then again, it might. Who knows what them browser makers are thinking :P

    Comment

    • agf2309
      New Member
      • May 2007
      • 3

      #3
      Thanks for your input.

      I have tried those and their not working. They should also have affected the pages in IE if that was the problem. However, both IE and Opera are rendering the site fully.

      I can't figure out why the two Browsers are delivering the full code (see View Page Source) but not rendering it.

      I'll double check the CSS, Maybe it's in there.

      At least I know that the script looks ok. That was my original conclusion, as you say it's server side so it shouldn't be affecting the rendering. Anyhow, Thanks again.

      Tony

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        This is just a thought. I see you've put <P class="center"> exectly where the Mozilla based browsers stop rendering. Its probbly that CSS class that's the problem.

        Firefox an Netscape are both Mozilla based browsers, so it makes sence that they would both show the same problems.
        IE and Opera, however, user their own rendering engines.

        IE seemes to have a greater tolerance for minor syntax errors than other browsers so of any browser, IE would be the one to ignore the problem. Whether this is a good thing or not is up for debate.

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          The problem is, you have two <body> tags. Rendering stops at the second one.

          [code=javascript]
          <script language="javas cript" type="text/javascript">[/code]language =javascript was deprecated in 1999 and should not be used.

          I'm glad we have a HTML forum.

          Comment

          • Atli
            Recognized Expert Expert
            • Nov 2006
            • 5062

            #6
            Originally posted by drhowarddrfine
            language =javascript was deprecated in 1999 and should not be used.
            Ok, I didn't know that.
            Must have missed the memo :P

            Comment

            • pbmods
              Recognized Expert Expert
              • Apr 2007
              • 5821

              #7
              I'm moving this to the HTML/CSS forum.

              Comment

              • agf2309
                New Member
                • May 2007
                • 3

                #8
                Thanks for the help and comments on this.

                Even though I validated all the html at both 4.01strict and xhtml 1.0 transitional this was never picked up on. Great to have people around who spot simple things.

                However, Still no joy until this morning. I put a line of text just beore the table and hey presto, everything shows up. Changed the text to a "&nbsp;" and now the entire site is showing up.

                Don't know if this is an anomaly with these browsers, but once they have anything before the table, it's rendering properly. Strange but true.

                Thanks for the help.

                Be back soon. Great forum and resource site. Thanks for taking the time.

                Tony

                Comment

                • drhowarddrfine
                  Recognized Expert Expert
                  • Sep 2006
                  • 7434

                  #9
                  The only problem is, you are relying on an error to work consistently throughout your site and on all browsers. It may work today but what about when you add other things? The extra body tag makes no sense so remove it.

                  Comment

                  Working...