You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Jean-François Chamard <jf...@interstructure.ca> on 2006/01/13 20:22:00 UTC
Re: loading a javascript file
Hi Jill,
not really a velocity related question... but you should check the
output source first
in the text you type, it's supposed to be "language" and not "langauge"
Although, this syntax is deprecated, it doesn't matter much but you
should use this syntax <script src="" type="text/javascript>
Hope it helps a bit
Jeff
jill han wrote:
>We have a turbine/torque/velocity application deployed to Tomcat which
>is in Apache container(AJP13)
>Here is a snippet from a velocity page.
>
><script langauge="javascript"
>src="$content.getURI("javascript/calendar.js")"></script>
>
>However, when the page is accessed, the calendar is not displayed
>properly since the calendar.js is not loaded. You have to hit 'refresh'
>button on the browser.
>
>If the page was deployed to the solely Tomcat, it will be displayed
>correctly.
>Why is that?
>Your help is appreciated as always.
>Jill
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org