<select> elements shows empty texts in IE 7.0.5730.11IC and IE 6.0

seaarg - November 27, 2007 - 13:11
Project:Active Select
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:reviewed & tested by the community
Description

When the function Drupal.jsAS.prototype.populate is called in activeselect.js it populates right the element, but in IE the texts are shown empty.

To make a quick fix i did:
var opt = new Option(text, value, false, selected);
opt.innerText = text;
$(this.targets[targetIndex]).append(opt);

Where before was:
$(this.targets[targetIndex]).append(new Option(text, value, false, selected));

And works correctly in Firefox, IE 6 and IE 7

#1

js1 - February 14, 2008 - 21:54

This seems to fix my IE7 problem. Safari and Firefox 2.x still works.

#2

tostinni - March 5, 2008 - 21:25

Works for me on IE6,7 FF2 and Opera 9 (unless there's some extra empy lines, but I'm pretty sure this is an Opera bug).

#3

Hanno - March 21, 2008 - 12:30
Status:active» reviewed & tested by the community

worked for me as well. thanks for this bug report.

#4

flobruit - July 14, 2008 - 07:49

This is indeed a solution, but not a patch.

Here's a patch.

AttachmentSize
activeselect-IE_bug.patch 981 bytes

#5

priyar - January 21, 2009 - 09:43

thanks for giving this solution

#6

Bacteria Man - March 31, 2009 - 23:36

Confirms the patch solves the IE6/IE7 issue (and continues to work with FF3 as well.)

Any reason why this patch hasn't been rolled into a new release?

 
 

Drupal is a registered trademark of Dries Buytaert.