Re: T5: Conditional JavaScript code

2007-06-28 Thread 蝈蝈龙
Hi Howard, When do TP5 plan to support CDATA? I think it is very important. 2007/6/29, Howard Lewis Ship <[EMAIL PROTECTED]>: for (var i = 0; i < someConstant; i++) { On 6/27/07, Martin Dietze <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to add inline JavaScript code to a form dependi

Re: T5: Conditional JavaScript code

2007-06-28 Thread Howard Lewis Ship
for (var i = 0; i < someConstant; i++) { On 6/27/07, Martin Dietze <[EMAIL PROTECTED]> wrote: Hi, I would like to add inline JavaScript code to a form depending on conditions set within the page class. I thus wrote code like this: | | function myFunc() { | |

Re: T5: Conditional JavaScript code

2007-06-27 Thread Jesse Kuhnert
I'm not sure about the best solution for this but have you tried replacing < with < to make the parser happy about well formed html ? (or do a style comment block ? ) On 6/27/07, Martin Dietze <[EMAIL PROTECTED]> wrote: Hi, I would like to add inline JavaScript code to a form dependi

RE: T5: Conditional JavaScript code

2007-06-27 Thread Adam Ayres
ant to conditionally call the function instead. Adam -Original Message- From: Martin Dietze [mailto:[EMAIL PROTECTED] On Behalf Of Martin Dietze Sent: Wednesday, June 27, 2007 1:09 AM To: users@tapestry.apache.org Subject: T5: Conditional JavaScript code Hi, I would like to add inline

Re: T5: Conditional JavaScript code

2007-06-27 Thread Nick Westgate
You'll get better advice from JS gurus, but I usually just reverse the condition: for (var i = 0; someConstant >= i ; i++) { Cheers, Nick. Martin Dietze wrote: Hi, I would like to add inline JavaScript code to a form depending on conditions set within the page class. I thus wrote code like

T5: Conditional JavaScript code

2007-06-27 Thread Martin Dietze
Hi, I would like to add inline JavaScript code to a form depending on conditions set within the page class. I thus wrote code like this: | | function myFunc() { | | for (var i = 0; i < someConstant; i++) { | doSomethin(); | } | | } | This code ca