ZF-4333: formSelect helper is rendering incorrect
Description
Don't know if this still needs to be open It seems to be differences in PHP version? maybe?
Attributes: array('onChange' => 'alert("hello"); ') <--- Does not work in php 5.2.6
but array('onChange' => 'alert(\'zoo\'); ') <---- Does work
Using 1.6.0 or 1.6.1 on one server the formSelect helper is not rendering correctly. s?
Server details: Apache/2.2.9 (Unix) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
Code: <?php echo $this->formSelect('frm_campus_id', null, array('onChange' => 'alert("hello"); '), $this->campusArray); ?>
Using Firebug - I can see that it is rendering like this: - Select -BBAC Campustest
Comments
Posted by Jon Whitcraft (sidhighwind) on 2008-10-22T15:27:21.000+0000
To me you should be assigning the onChange event with javascript in the view instead of trying to add it to the attribute to create proper html code.
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-11-08T17:57:13.000+0000
Solved in SVN r12477.
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:01.000+0000
Changing issues in preparation for the 1.7.0 release.