Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Anton Andrievskij
Ok, so the idea is to build data in the PHP, then simply past it to the using tal:content. Thanks. On Jan 21, 2008 1:08 PM, Christoph Frick <[EMAIL PROTECTED]> wrote: > On Mon, Jan 21, 2008 at 12:43:21PM +0200, Anton Andrievskij wrote: > > > I have to fill JavaScript array using PHPTAL attribute

Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Christoph Frick
On Mon, Jan 21, 2008 at 12:43:21PM +0200, Anton Andrievskij wrote: > I have to fill JavaScript array using PHPTAL attributes. > > Whether I can use some inside > construction? > > Example: > > >items = array( > >

Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Kornel Lesinski
On Mon, 21 Jan 2008 10:43:21 -, Anton Andrievskij <[EMAIL PROTECTED]> wrote: I have to fill JavaScript array using PHPTAL attributes. Whether I can use some inside construction? I'm afraid that might be difficult with pure PHPTAL. To avoid compatibility problems with non-XHTML brows

Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Levi Stanley
You can do something like this: Best regards, Levi On Jan 21, 2008 5:43 AM, Anton Andrievskij <[EMAIL PROTECTED]> wrote: > Hi. > > I have to fill JavaScript array using PHPTAL attributes. > > Whether I can use some inside > construction? > > Example: > > >items = array( >

[PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Anton Andrievskij
Hi. I have to fill JavaScript array using PHPTAL attributes. Whether I can use some inside construction? Example: items = array( ) If I can't do