Opened 12 years ago

Closed 11 years ago

Last modified 8 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:

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)

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

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by guest

Attachment: screenshot.jpg added

screenshot

comment:1 Changed 12 years ago by Douglas Hays

Milestone: 1.1
Owner: set to haysmark

Dijit does not support Opera yet.

comment:2 Changed 11 years ago by Douglas Hays

Owner: changed from haysmark to Douglas Hays

comment:3 Changed 11 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

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

comment:4 Changed 8 years ago by bill

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