PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm_advmultiselect » Bug #4993

JavaScript Error

Details

Submitted2005-08-04 07:27 UTC
Fromjan dot bolmeson at ivtaco dot se
Assignedfarell
StatusClosed
PackageHTML_QuickForm_advmultiselect
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-08-04 07:27 UTC] jan dot bolmeson at ivtaco dot se

Description:
------------
Hi,

When using the package I get a JavaScript Error when I transfer options between the two selects.

The javascript error occurs even in the supplied examples in the PEAR::docs directory.

The javascript error is:
r.options[i] has no properties

and it is raised by the following row:
h.options[h.length] = new Option(r.options[i].text, r.options[i].value);

I use the following version of AMS:
* @version CVS: $Id: advmultiselect.php,v 1.3 2005/07/25 15:47:15 farell Exp $

Test script:
---------------
examples in docs-directory

Expected result:
----------------
an execution without javascript errors.

Actual result:
--------------
JavaScript error is raised; see description.