[PHPTAL] writing JS functinons in cdata blocks
Nathanial Mayweather
nmayweather at hotmail.com
Fri Nov 18 16:37:17 CET 2005
I can't figure out how to accomplish this:
I'm using the FlashObject js include ( blog.deconcept.com/FlashObject ) to
embed flash onto web pages.
it looks like this:
<script type="text/javascript" src="../../js/FlashObject/flashobject.js"
tal:attributes="src URL/js/flashobject"></script>
<script type="text/javascript">
// <![CDATA[
var fo = new FlashObject('Movie.swf', 'FlashMovie', '<span
tal:replace="FlashMovie/width"/>', '<span
tal:replace="FlashMovie/height"/>', '<span
tal:replace="FlashMovie/flash_version_min"/>', '#<span
tal:replace="FlashMovie/bgcolor"/>');
fo.write("flashcontent");
// ]]>
My problem is this:
none fo the tal: statements in the CDATA block are processed. i can do a
workaround by using ${FlashMovie/height} -- but i'd rather keep this in pure
tal.
Can anyone offer a suggestion - there's clearly something about the TAL
implementation that I'm not grasping correctly.
Thank you!
More information about the PHPTAL
mailing list