Closed (fixed)
Project:
Active Select
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2007 at 02:42 UTC
Updated:
9 Mar 2008 at 07:11 UTC
The attached patch has resolved the issue of having a blank target select list in IE. Tested with FF 2.0.0.1 under Linux and 1.5.9 and 1.5.10 under WinXP. As well as IE 6 and 7 under WinXP. I needed this so I could use the content_taxonomy_activeselect fields in IE.
To give due credit, this work was sponsored by leftrightminds.com.
| Comment | File | Size | Author |
|---|---|---|---|
| activeselect.patch | 1.3 KB | WRXIzumi |
Comments
Comment #1
bdragon commentedModified patch committed to DRUPAL-5 and HEAD.
http://drupal.org/cvs?commit=63386
http://drupal.org/cvs?commit=63387
Pushing it works on all browsers, right? Seemed like a simpler solution.
Please reopen if my changes to your patch broke anything.
Thanks,
--Brandon
Comment #2
knseibert commentedHi Brandon,
i've installed the latest cvs version for Drupal 5.1. Firefox works great under XP SP2. Opera and IE7 fail. Both remain blank.
Comment #3
knseibert commentedHere's the Opera error log:
JavaScript - http://domain/node/add/page
Unknown thread
Error:
name: TypeError
message: Statement on line 152: Type mismatch (usually a non-object value used where an object is required)
Backtrace:
Line 152 of linked script http://domain/sites/all/modules/activeselect/activeselect.js
this.targets[targetIndex].options.push(new Option(text, value, false, selected));
Line 246 of linked script http://domain/sites/all/modules/activeselect/activeselect.js
db.owner.populate(targets);
Line 1 of eval script
if (xml && (xml.readyState == 4 || isTimeout == "timeout"))
At unknown location
[statement source code not available]
Comment #4
bdragon commentedOK, rolling back to the 4.7 version of the line, which accomplishes the same thing as the patch without using a temporary variable.
Comment #5
GLHMarmot commentedThanks for applying a version of the patch. Or at least rolling back to a version that had the same effect. I can confirm that the Apr 9, 2007 development version of this module now works great with content_taxonomy under Firefox and IE 6. (I did not test with IE 7 but expect the same result.)
As far as I am concerned this bug report can be closed.
Comment #6
(not verified) commentedComment #7
francewhoaThe 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