Active Select + Category IE Issue

slybanshee - February 20, 2007 - 21:04
Project:Active Select
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Target fields stay empty when parent field changed. This occurs in Internet Explorer 6, not depending the level of Java-security, even of Java disabled. At the same time on Firefox 2.0 everything works fine. Category module version 5.x-1.1.
To reproduce:
1. Create Container1.
2. Create Category1 in Container1.
3. Create Container2 in Container1.
4. Set Container2 allowing categories to have distant parents from Container1 (attention: NOT Container1* with asterisks).
5. Create Category2 in Container2.
6. Set Category2's parents to both Container2 and Category1.
7. Assign Container1 and Container2 to some content type.
8. Try to create content with both browsers.

#1

slybanshee - February 28, 2007 - 09:16

Remark: during steps 1 to 7 Active select must be disabled bacause off known bug (see http://drupal.org/node/121524 for details). Before you will try to create content during step 8 enable Active select in modules section. I attach two screenshots to illustrate the difference between two browsers.

AttachmentSize
Screenshot_0.jpg 39.49 KB

#2

Shane Birley - March 19, 2007 - 03:38

#3

slybanshee - March 24, 2007 - 09:41
Status:active» closed

Thank you Shane Birley!

Making this closed. For solution see the above link.

#4

Onopoc - March 9, 2008 - 07:09

The following works for me:

Change line 156 (approx) from activeselect.js

-- $(this.targets[targetIndex]).append(new Option(text, value, false, selected));

++ if (navigator.appName == "Microsoft Internet Explorer") {
++ this.targets[targetIndex].add(new Option(text, value, false, selected));
++ }else{
++ $(this.targets[targetIndex]).append(new Option(text, value, false, selected));
++ }

Thanks to olemsa: http://drupal.org/node/147076#comment-561190

 
 

Drupal is a registered trademark of Dries Buytaert.