473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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.
Feb 16 '06 #1
2 1238
DWS
Lau,
Its not obvious to me that the checkbox returns 'on' and "".

Good Luck
DWS
"Lau Lei Cheong" wrote:
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.

Feb 16 '06 #2
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" <DW*@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:38********************************* *@microsoft.com...
Lau,
Its not obvious to me that the checkbox returns 'on' and "".

Good Luck
DWS
"Lau Lei Cheong" wrote:
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.

Feb 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Martin! | last post by:
hi all, yesterday i checked some of my sites with safari on a mac with os x and saw that some things didnt show up as they do in IE and FF. these things include a css_roll_menu and a suckerfish...
5
by: Foreman | last post by:
Using ASPFileUpload (http://support.microsoft.com/default.aspx?scid=kb;en-us;299692) and works for IE6 and FireFox but not Safari. Thanks in advance for your assistance.
8
by: Giuseppe Chielli | last post by:
Hi to everyone? Can someone tell me if there is a way to identify Safari...I found out that navigator.appName returns "Netscape" and I didn't found any option to change the browser's definition......
4
by: dpomt | last post by:
Hello, I am using the ASP.NET menu control and I have two issues when the page containing the menu is displayed in Safari on Mac OS X: 1) The menu is not dynamic. Why (it seems that Safari is...
79
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the...
21
by: Edward | last post by:
Hi All, I feel frustrated with one of my Customers who wants me to ensure that a dotnet web site I am building for them must be compatible to Apple's Safari browser! Safari is buggy and it...
16
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as...
12
by: Eric Lindsay | last post by:
I have a web page at http://www.architectqueensland.com/index.html styled with http://www.architectqueensland.com/architect.css The site is valid HTML 4.01 Strict. The CSS is valid 2.1 except for...
14
by: dd | last post by:
"Apple has launched a version of its web browser Safari for Windows" http://news.bbc.co.uk/1/hi/technology/6742439.stm As if having Safari exist on the Mac wasn't bad enough, now we have to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.