Req #5902 [NEW]: hierselect and QuickHtml

From: Date: Wed, 09 Nov 2005 02:31:46 +0000
Subject: Req #5902 [NEW]: hierselect and QuickHtml
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-4602@lists.php.net to get a copy of this message
From: dobes at lnx dot cz Operating system: Gentoo PHP version: Irrelevant Package: Bug System Bug Type: Feature/Change Request Bug description: hierselect and QuickHtml Description: ------------ Is possible to move function script from first hierselect just after form tag? When I use tempate with different formating, hierselect upper then first defined is not working. PaD PEAR version: HTML_QuickForm-3.2.5 PHP Version 4.4.0-gentoo-r1 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051013 Firefox/1.0.7 Test script: --------------- $renderer =& new HTML_QuickForm_Renderer_QuickHtml(); ... $form->addElement('hierselect', 'firest', 'Select:', array('style' => 'width: 20em;'), '<br />') $form->addElement('hierselect', 'second', 'Select:', array('style' => 'width: 20em;'), '<br />') ... $form->accept($renderer); $template = ' ... <div>%second%</div> ... <div>%first%</div> ... '; $template = str_replace('%firest%', $renderer->elementToHtml('first'), $template); $template = str_replace('%second%', $renderer->elementToHtml('second'), $template); echo $renderer->toHtml($tempate); Expected result: ---------------- the //<![CDATA[ function _hs_findOptions(ary, keys) { ... after <form>, to be working with 'second' too... In such templates. Actual result: -------------- the //<![CDATA[ function _hs_findOptions(ary, keys) { ... is part of first defined hierselect -- Edit bug report at http://pear.php.net/bugs/bug.php?id=5902&edit=1 --

« previous php.pear.webmaster (#4602) next »