[PHPTAL] PHPTAL + xajax
Laurent Bedubourg
lbedubourg at motion-twin.com
Mon Oct 30 12:01:26 CET 2006
Anniyka Wandersmann wrote:
>
> Is there an nice way to do this with PHPTAL? As of the documantation of
> xajax I HAVE TO put this in the header which I certainly belive after
> looking at the code, so I do not may use something like a div-container
> around it.
>
> A TAL attribute would be nice, that also removes itself entirely. I didn'
> find something like this till now.
>
Hi,
You can try :
<script tal:replace="structure ajax"/>
Which will replace the entire element by the content of 'ajax' variable.
Please note that the "regular" way to insert javascript into XHTML is :
<script type="text/javascript">
//<![CDATA[
... my js goes here and won't break my XHTML document...
//]]>
</script>
Regards
Laurent
--
Laurent Bedubourg
lbedubourg at motion-twin.com
http://www.motion-twin.com
More information about the PHPTAL
mailing list