PEAR is archived and read-only

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

Home » HTML » HTML_Template_Flexy » Bug #8064

toJavascript deletes javascript

Details

Request #8064toJavascript deletes javascript
Submitted2006-06-29 07:34 UTC
Fromcmouse at desteem dot org
StatusVerified
PackageHTML_Template_Flexy
PHP Version5.1.4
OSLinux
Roadmaps(Not assigned)

Comments

[2006-06-29 07:34 UTC] cmouse at desteem dot org

Description:
------------
Example:

<flexy:toJavascript group="group">
<script type="text/javascript">
<!--; // <![CDATA[
var group=0;
toggleGroup(group);
// ]]> -->
</script>
</flexy:toJavascript>

This renders up as

<script type="text/javascript">
<!--; // <![CDATA[
var group=0;
// ]]> -->
</script>

And then I go 'WTF!?!' where is my toggleGroup?!. Oh, it filters it out. So, I have to go round this by adding yet another <script></script> tag which actually does this one-line function call.

Would make the code a LOT cleaner in many places if you could just not remove the javascript. Or you could at least say something about this in the manual page. It is very irritating undocumented "feature".

Test script:
---------------
See above