jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16753] - Select gives no option value if key.equals(value)
Date Wed, 05 Feb 2003 10:12:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16753>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16753

Select gives no option value if key.equals(value)





------- Additional Comments From sveffa@yahoo.com  2003-02-05 10:12 -------
You are correct that the value of the request parameter in the GET/POST of the
form will have the value of the label if no value exists.

However, the browser all work a little bit different when it comes to selects
and javascript.

document.frm.theSelect.value
Ne4: Allways returns null, even if there is a value
IE: Returns a value, not the label
Mozilla: Works like a charm!

document.frm.theSelect.options[document.frm.theSelect.selectedIndex].value
Ne4 and IE Returns a value, not the label
Mozilla: Works like a charm!

document.frm.theSelect.options[document.frm.theSelect.selectedIndex]
Always returns an object. Probably an option

Mozilla follows standard, IE 6.0.26 and Ne 4.79 do not.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message