Quickform_advmultiselect : problem with javascript in template sigma

From: Date: Fri, 20 Jul 2007 17:30:31 +0000
Subject: Quickform_advmultiselect : problem with javascript in template sigma
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27701@lists.php.net to get a copy of this message
Hi, I'm trying to get the advmultiselect element to work in conjunction with Template Sigma. There is an example of how to do so here: http://www.laurent-laville.org/pear/HTML_QuickForm_advmultiselect/examples/qfams_template_1.php ... but it doesn't work!? I've tried it on Mac FF / Safari and PC IE 6.. you can't move items from the left menu to the right. Obviously this is a javascript problem. It looks like there is an attempt to write the element javascript into the template : <code> $tpl = new HTML_Template_Sigma('.'); $tpl->loadTemplateFile('itdynamic.html'); $tpl->setVariable('ams_javascript', $ams->getElementJs(false)); </code> In my tests, getElementJs(false) returns empty.. Any clues as to how to get this to work? Thanks, Noel. Installed packages, channel pear.php.net: =========================================
Package                   Version State
Archive_Tar               1.3.2   stable
Console_Getopt            1.2     stable
DB                        1.7.9   stable
DB_DataObject             1.7.15  stable
Date                      1.4.7   stable
HTML_Common               1.2.3   stable
HTML_QuickForm            3.2.7   stable
HTML_QuickForm_Controller 1.0.7 stable
HTML_Table                1.7.5   stable
HTML_Template_IT          1.1     stable
HTML_Template_Sigma       1.1.5   stable
HTTP                      1.4.0   stable
HTTP_Download             1.1.1   stable
HTTP_Header               1.2.0   stable
HTTP_Upload               0.9.1   stable
MDB2                      2.4.0   stable
MDB2_Driver_mysql         1.4.0   stable
MIME_Type                 1.0.0   stable
Mail                      1.1.14  stable
Mail_Mime                 1.3.1   stable
Net_UserAgent_Detect      2.0.1   stable
PEAR                      1.5.1   stable
Pager                     2.4.3   stable
Structures_Graph          1.0.2   stable
XML_Parser                1.2.8   stable
XML_RPC                   1.4.0   stable
Noel da Costa Lead Developer Magnet Harlequin T: 01895 432400 M: 07879 427940 F: 01895 432444 E: noel.dacosta@magharl.co.uk W: http://www.magharl.co.uk This e-mail is intended solely for the addressees named above and any other use is prohibited. Access to this email by anyone else is unauthorised. It may contain confidential information. If you have received this e-mail in error, please contact the sender by return e-mail. We do not accept legal responsibility for the contents of this message if it has reached you via the internet. Any opinions expressed are those of the author and are not necessarily endorsed by the company. Recipients are advised to apply their own virus check to this message and all incoming e-mail on delivery.

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