[Zope] Combining TAL and JavaScript

Andreas Jung lists at zopyx.com
Mon Jul 31 07:36:02 EDT 2006



--On 31. Juli 2006 14:32:59 +0300 Mikko Koivunen <mikko.koivunen at gmail.com> 
wrote:

> Hi,
>
> On 7/31/06, Andreas Jung <lists at zopyx.com> wrote:
>> > Is it possible to process TAL with JavaScript?
>> TAL=Server-side, JS=Client-side...how should be both related?
>> You can of course generate JS code on the server-side.
>
> Yes, and I was wondering if I could put JS code on the view template
> which would do rewriting on link URLs that come from TAL statements.
>

No, but you can generate the related dynamic parts e.g. as  JS variables 
through TALES and reference these variables from within a static JS that is 
loaded in addition, got it?

-aj


ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060731/1abb72fb/attachment.bin


More information about the Zope mailing list