HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 3rd, 2000, 08:07 PM
sleeper sleeper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 3 sleeper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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).

<html>

<SCRIPT LANGUAGE="JavaScript">

function markthis(value) {

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

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

}
}

</SCRIPT>

<form>

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

</form>

</html>

[This message has been edited by sleeper (edited July 04, 2000).]

Reply With Quote
  #2  
Old July 4th, 2000, 11:25 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Which is Standards Compliant? IE5 or Mozilla


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway