Re: [T5] Javascript links rendered on bottom of page?

2008-04-25 Thread Harald Geritzer
hi chris, after having a second look at your code i think you don't even need the replacement at all as the new version uses the replaceTextArea() instead of assigning the text via javascript. in writeScript() the replacement of \r,' occurs but _value is written out before in afterRender()

Re: [T5] Javascript links rendered on bottom of page?

2008-04-25 Thread Chris Lewis
Harald, I'm honestly not clear on what the initial issue with that was (I'm not the original author), but it may have had to do with the fact that the component wrote out script code directly using the MarkupWriter instead of PageRenderSupport. It was originally written for a much earlier version

[T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
hi all, is there a special reason for rendering the javascript includes on bottom of the page in latest 5.0.12 snapshot? i got a fckeditor on my page and it seems like my editor field wants to initialize the FCKeditor before the script ist even loaded? any hints welcome, harald script

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Davor Hrg
This a recommendation from YSlow, because it helps wrowser render page faster by leaving javascript part for the end. you should put your initialization code in onload... Davor Hrg On Thu, Apr 24, 2008 at 2:13 PM, Harald Geritzer [EMAIL PROTECTED] wrote: hi all, is there a special

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Chris Lewis
Hi Harald, tapestry5-components has an editor component (which uses fck): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html A fix for this issue has just been committed to svn, if you're interested in an already-integrated version. In any

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
Chris Lewis schrieb: Hi Harald, tapestry5-components has an editor component (which uses fck): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html ty, guess in writeScript(): _value = _value.replace('\r', '\\'); //this is needed for

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Chris Lewis
Harald, Can I convince you to file an issue, if that is an issue? http://code.google.com/p/tapestry5-components/issues/list If you can, provide an example situation that would cause a problem. thanks! Harald Geritzer wrote: Chris Lewis schrieb: Hi Harald, tapestry5-components has an