Re: HTML_QuickForm_advmultiselect javascript error

From: Date: Tue, 16 Dec 2008 20:31:54 +0000
Subject: Re: HTML_QuickForm_advmultiselect javascript error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29514@lists.php.net to get a copy of this message
Noel da Costa a écrit :
Hi there, I'm getting problems using HTML_QuickForm_advmultiselect v1.4.1 error: -------- s is null [Break on this error] qfamsUpdateCounter(c, s.length); -------- This occurs when moving an item from column a to column b Any ideas? Thanks, Noel da Costa a r c c o n t r a c t i n g +27 (0)76 263 9544 www.arc2.co.uk
Hello, If you used the default javascript provided with the package, and with so few information I sould said that there is two possible origins. 1. the source list is not available (on the DOM) s is null => source list
202    // updates unselected item count
203    var c = document.getElementById(qfamsName + '_unselected');
204    var s = document.getElementById(qfamsName + '-f');
205    qfamsUpdateCounter(c, s.length);
206 2. the target list is not available (on the DOM) s is null => target list
207    // updates selected item count
208    var c = document.getElementById(qfamsName + '_selected');
209    var s = document.getElementById(qfamsName + '-t');
210    qfamsUpdateCounter(c, s.length);
Perharps you should provide more information !

« previous php.pear.general (#29514) next »