#4504 closed defect (fixed)
ComboBox does not initialize properly in Opera - shows digit '0' as preselected item
Reported by: | guest | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | Dijit - Form | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I used the standard example code for bringing up "dijit.form.ComboBox?" (code pasted below, also live at http://string.embl.de/test2.html).
Works fine in Firefox and Safari, but breaks in Opera: instead of showing the preselection item "California", the ComboBox? simply shows the letter 'zero' (0).
dojo version: 0.9.0 Opera version: 9.23 (downloaded today, Sept. 19 2007, on Mac OSX 10.4.10)
Thanks for looking into this ... Regards, Christian von Mering.
Test code:
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/xhtml1-strict.dtd">
<html> <head> <title>Simple ComboBox?</title>
<style type="text/css">
@import "http://o.aolcdn.com/dojo/0.9.0/dijit/themes/tundra/tundra.css"; @import "http://o.aolcdn.com/dojo/0.9.0/dojo/dojo.css"
</style> <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.9.0/dojo/dojo.xd.js"
djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
dojo.require("dojo.parser"); dojo.require("dijit.form.ComboBox?"); function setVal1(value) {
console.debug("Selected "+value);
}
</script>
</head> <body class="tundra">
<form action=/newstring_cgi/show_link_summary.pl method=POST>
<input type=text name=identifier></input>
<select name="state1"
dojoType="dijit.form.ComboBox?" autocomplete="false" value="California" onChange="setVal1"> <option selected="selected">California</option> <option >Illinois</option> <option >New York</option> <option >Texas</option>
</select>
<input type='submit' name='ok' value='ok'> </form> </body></html>
Attachments (1)
Change History (5)
Changed 13 years ago by
Attachment: | screenshot.jpg added |
---|
comment:1 Changed 13 years ago by
Milestone: | → 1.1 |
---|---|
Owner: | set to haysmark |
Dijit does not support Opera yet.
comment:2 Changed 13 years ago by
Owner: | changed from haysmark to Douglas Hays |
---|
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
screenshot