Re: JavaScript outside the body tag

2006-06-07 Thread Peter Dawn
yep, i cant find any other way of putting the script component outside the body tag. so i am going to just reference an external js file. and that seems to work for now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: JavaScript outside the body tag

2006-06-07 Thread Shing Hing Man
A Script component must be enclosed by a Body component. Please see the following details. http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Script.html Shing --- Peter Dawn <[EMAIL PROTECTED]> wrote: > i am already using the javascript component for > this. but i am unable > to

Re: JavaScript outside the body tag

2006-06-07 Thread Peter Dawn
i am already using the javascript component for this. but i am unable to put this component outside the body tag (inbetween and ) in the HTML. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: JavaScript outside the body tag

2006-06-07 Thread Shing Hing Man
An alternative is to wrap your javascript in a Script component. In .script file, just use the include-script element to include your javascript. Here is a sample. preview.script : http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>