Results 1 to 8 of 8

Thread: Firefox/IE issues

  1. #1
    Join Date
    Dec 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Firefox/IE issues

    ok please help! I posted in the wrong forum before so here it is again.

    Im sure this isnt very good coding and you'll tell me my many many mistakes that make this page load up in firefox only and not IE6.

    www.squashandspanna.com/pics.html

    but I dont understand why this doesnt work!

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I already told you how to solve the problem. It just takes a little effort on your part.

    Mike

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here is your main problem:

    Code:
    <script type="text/javascript" src="data/gallery.js" />
    it should be:

    Code:
    <script type="text/javascript" src="data/gallery.js"> 
    
    </script>
    Oh, and if that is a DD script, do not remove the credit!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes... it took me a long time to figure this one out. Firefox parses a self-closing script tag properly; however, it seems to be the only browser to do so, leaving the page blank in everything else.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Dec 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your help guys, regarding mwinters comments, I did not notice the issue about FF only accepting the self closing script tag in the links you gave me. so thats why I posted again as I amended as you said and changed a few things as per the w3c links and it still did not show up in IE.

    Oh and to clarify, the javascript is not from Dynamic Drive! it is from another site that did not request that i include a credit.

    Thanks again.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You still haven't fixed this:

    HTML Code:
    <script type="text/javascript src="data/gallery.js"/>
    at least not in your demo. As I said, it should be:

    HTML Code:
    <script type="text/javascript" src="data/gallery.js"></script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Oh, here is another major error:

    HTML Code:
    <meta http-equiv="Content-Type" content="text/html; />
    should be:

    HTML Code:
    <meta http-equiv="Content-Type" content="text/html" />
    With this and the change made in my previous post, I got a local demo working well in IE and FF.

    Notes: You really don't need all those self closing tags. Until IE comes out with a more modern browser, the old style unclosed tags (for tags that don't need closing) and the old style separate close tags (for tags that need closing), should be used.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by John
    Until IE comes out with a more modern browser, the old style unclosed tags (for tags that don't need closing) and the old style separate close tags (for tags that need closing), should be used.
    So long as it renders them, that's fine, I'd say. There are just a couple (like <script/>) you need to be wary of. I think a lot of browsers don't support <script/> because it's technically a closed tag, and they still regard tags as being either singleton or closed, rather than the XML/XHTML approach of defining a "singleton" tag as being the same as an empty closed tag.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •