Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Maybe I should just use Safari to do the testings...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lau Lei Cheong - 16 Feb 2006 10:22 GMT
This is to be refered to my many-months-ago previous most on "mercyful
browers".

It just seems that both IE and Firefox are "too merciful" to web development
testing.

There's a sample code to be run on "onclick" event of checkbox that has been
hidden in our code 1 year, and go pass the QC by both IE and Firefox without
complain:

function toogleCheckBox(chk) {
   if (chk.checked == true) {
       chk.value = '1';
   } else {
       chk.value = '0';
   }
}

It's quite obvious that by design, the checkbox control's value should
return either "on" if checked, or "" if not. And both IE and Firefox is too
mercyful to allow the "value" to be changed to anything else. Now one of our
customer used Safari, and Safari "do the right thing" to return just "on"
and "" to the server. And boom, the web application become hopelessly
broken.

I'm on my endless quest to find a browser that "just breaks" when it see
anything that "don't follow the standard"(of course, it shouldn't complain
when it see something follows the standard). Now it seems that Safari is a
close one...

I'll be grateful if I see in IE 7, they add a switch to close all the
"mercy" features. Until then, I can be reassured that any code passed the QC
does meet the standard and I can take a rest with confidence.
DWS - 16 Feb 2006 17:00 GMT
Lau,
Its not obvious to me that the checkbox returns 'on' and "".

Good Luck
DWS

> This is to be refered to my many-months-ago previous most on "mercyful
> browers".
[quoted text clipped - 29 lines]
> "mercy" features. Until then, I can be reassured that any code passed the QC
> does meet the standard and I can take a rest with confidence.
Lau Lei Cheong - 17 Feb 2006 02:17 GMT
Maybe, but that's how brower tell the server-side code the state of
checkboxes and radiobuttons.
(By returning "on" or "" in Request data stream.)

"DWS" <DWS@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:38C53FFA-D212-4B36-93C4-A7048A3D0461@microsoft.com...
> Lau,
> Its not obvious to me that the checkbox returns 'on' and "".
[quoted text clipped - 43 lines]
>> QC
>> does meet the standard and I can take a rest with confidence.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.