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
You could use the PageRenderSupport Environmental annotation to set a JavaScript variable in your page class that is the evaluated by the embedded component JavaScript. MyPageComponent.java: @Environmental private PageRenderSupport pageRenderSupport; @BeginRender void beginRender() { pag

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