1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Rep Power
    I'm trying to write some Javascript that is standards compliant. I have a captive audience, so I can dictate which browser they use.

    I want to write the application to the standard so I don't have to revisit it during the next round of browser releases.

    I wrote the following script that works fine in IE 5, but acts differently in Mozilla M16.

    After clicking the first checkbox, in Mozilla the "document.getElementById("served").checked" does not come back as "true" until after the script is done running.

    IE5 sets the value to "true" before the script runs (which makes sense to me).

    I suspect it is a Mozilla bug, but I can't find any bug reports. Is this the standard? If so, I'll reverse the logic to make it work and require everyone to use Mozilla/Netscape6 (once they are released).


    <SCRIPT LANGUAGE="JavaScript">

    function markthis(value) {

    if(document.getElementById("served").checked) {

    document.getElementById("turnedaway").checked = false




    <INPUT TYPE="checkbox" NAME="served" onClick="markthis(this)"><p>
    <INPUT TYPE="checkbox" name="turnedaway">



    [This message has been edited by sleeper (edited July 04, 2000).]
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Perth West Australia
    Rep Power
    Technically speaking - NS6 is the most standards compliant browser to date.

    However the plain truth is that IE5 works and the present release of NS6 does not, there are several big nasty bugs in the preview release.

    If NS fix all the bugs then they win the compatibility contest - but until then you are just going to have to guess how the final release will behave!

    PS: IE5 for mac is supposed to be more/as standardised as NS6 - but it too does not work properly - although that may be something to do with its platform?


    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. HTTPS file transfer headers for IE5
    By jeffcool in forum PHP Development
    Replies: 5
    Last Post: January 19th, 2004, 02:52 PM
  2. Floating elements in Mozilla
    By joh in forum HTML Programming
    Replies: 2
    Last Post: December 28th, 2003, 10:00 PM
  3. Mozilla spacing/padding problem
    By delerious in forum HTML Programming
    Replies: 2
    Last Post: December 20th, 2003, 11:10 PM
  4. Why you browse the web with IE
    By Zitan in forum Dev Shed Lounge
    Replies: 37
    Last Post: May 5th, 2003, 08:25 PM
  5. Open-source etiquette. Is Mozilla wrong to use Firebird name?
    By dcaillouet in forum Dev Shed Lounge
    Replies: 26
    Last Post: April 25th, 2003, 03:56 PM

IMN logo majestic logo threadwatch logo seochat tools logo