SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot JEmLAC's Avatar
    Join Date
    Apr 2002
    Location
    Kansas City
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE/Mozilla compatibilty

    Hello all.
    I don't know if this is a javascript question or a CSS question, but I'm having trouble getting a page I've been fiddling with to work. It's at

    http://rdc.nowhereville.com/cdnquiz/

    It works fine on IE 5+ (for windows at least), but does not work for Mozilla. I'd be curious on feedback. In a nutshell, it's a quiz page. All the questions are in divs which I turn on and off as the site visitor answers the questions. At the end I do a quick calculation on the selected choices and present a score. All the code is on one page, which I know is not the tidiest way to do it, but until I get it working it's simpler for me to keep it all in one file, get it working and then split it out.

    Any help is appreciated. Thanks in advance.
    Morning person by habit, not by nature.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The value of an id attribute can't start with a digit. So instead of id='1', use something like id='d1'

  3. #3
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, that's what I was gonna say. Darn you Mike
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  4. #4
    SitePoint Zealot JEmLAC's Avatar
    Join Date
    Apr 2002
    Location
    Kansas City
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MikeFoster
    The value of an id attribute can't start with a digit. So instead of id='1', use something like id='d1'
    Thanks for the quick response. That seems to have fixed it, although one thing that I thought would originally fix it was a bit of a red herring, namely including the whole thing inside a form. Under Mozilla having the form kept the subsequent questions from being displayed. I made the changes you suggested and removed the form, and now it works. All I have to figure out now is how to get the spans holding the questions to size consistently so the radio buttons line up over each other. That'll wait for now. At least Moz users can see it. And, I learned something.

    Thanks again.
    Morning person by habit, not by nature.

  5. #5
    SitePoint Zealot JEmLAC's Avatar
    Join Date
    Apr 2002
    Location
    Kansas City
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks beetle.
    Morning person by habit, not by nature.

  6. #6
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @ beetle


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
  •