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. 2 1238
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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.
|
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......
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |