Ajax.Updater not properly updating options within a select element in IE6
Reported by hobodave | July 8th, 2008 @ 05:54 PM | in 1.6.1
I'm using the following snippet of code to update the tags of a element. It works, but in IE6 it's generating several lines of blank options. These appear to be related to how many options were in the element before the update occurred.
new Ajax.Updater(elem.id, 'new/format/html', {
method: 'get',
parameters: {
type: elem.id.split('-').last(),
value: $F(e.target.id)
}
})
This results in the following request:
http://.../new/format/html?type=problemtype_id&value=9
and the following is returned:
<option value="">Please select</option>
<option value="18">Clinical Care</option>
<option value="17">Communication</option>
<option value="21">Environment</option>
<option value="19">Overall Experience</option>
<option value="20">Staff</option>
If the select element previously had say, 30 options, after updating it with these 6 new options, it would have 24 blank options resulting in a very large select box to display the 6 options.
Comments and changes to this ticket
-
John-David Dalton July 8th, 2008 @ 08:26 PM
- → Tag changed from ajax.updater ie6 to ajax.updater ie6 needs_patch needs_tests
- → Milestone changed from to 1.6.1
- → State changed from new to bug
Related to http://prototype.lighthouseapp.com/projects/8886/tickets/70-ajax-updater-optgroup-opera
(but not a duplicate of, just similar issues with Element#update and SELECT elements)
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Prototype JavaScript library.
