Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#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:


I used the standard example code for bringing up "dijit.form.ComboBox?" (code pasted below, also live at

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" "">

<html> <head> <title>Simple ComboBox?</title>

<style type="text/css">

@import ""; @import ""

</style> <script type="text/javascript" src=""

djConfig="parseOnLoad: true"></script>

<script type="text/javascript">

dojo.require("dojo.parser"); dojo.require("dijit.form.ComboBox?"); function setVal1(value) {

console.debug("Selected "+value);



</head> <body class="tundra">

<form action=/newstring_cgi/ 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>


<input type='submit' name='ok' value='ok'> </form> </body></html>

Attachments (1)

screenshot.jpg (44.4 KB) - added by guest 15 years ago.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by guest

Attachment: screenshot.jpg added


comment:1 Changed 15 years ago by Douglas Hays

Milestone: 1.1
Owner: set to haysmark

Dijit does not support Opera yet.

comment:2 Changed 15 years ago by Douglas Hays

Owner: changed from haysmark to Douglas Hays

comment:3 Changed 15 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [11904]) Fixes #4504. Check selectedIndex for Opera

comment:4 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.