Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2009
    Location
    U.S.
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page only working in one of multiple browsers.

    Wasn't quite sure if this should go in the HTML/CSS or Javascript forum since its bit of both. Having a hair more trouble with the JS/jQuery half of it so I chose this one, hopefully its fine. I made a quick, simple page to play around with some Javascript and jQuery and after getting a small amount of it done I went to test it on other browsers. On one of them there was the display changes in the page that I expected, the others.. I have no clue what to do to fix them. Out of IE, Avant, Opera, Chrome, and FF, Avant is the only one that the jQuery is working in. The <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    section, I know, keeps the layout looking right in both Avant and IE, and with it FF and Chrome it turns to a bunch of lines. Without it Opera looks fine, but FF and Chrome don't work either way. Either way the jQuery only works for me in avant. What little I did write is pretty basic, hardly varries from the tutorials.

    So if anyone could tell/help me figure out what needs to be done to get it working in the other browsers that would be great. Gonna put the txt file with the code in an attachment so this doesn't get too long.
    Attached Files Attached Files

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    I think the first thing you need to do is tidy up your HTML so that it at least validates. Once you've got a properly valid DOM, you can start writing JS to act on it.

  • #3
    New to the CF scene
    Join Date
    Aug 2009
    Location
    U.S.
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm okay. Nice to know about that link now. Looks like I need to do some more reading in different places. Tutorials I found or a bit worse of then I thought. Thanks..


  •  

    Posting Permissions

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