velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Song" <es...@royalmedia.com>
Subject RE: loading a javascript file
Date Fri, 13 Jan 2006 19:56:23 GMT
Still sounds like a javascript error and that the JS file is not loaded into
the browser.

Attempt to view source and that the path to your javascript file is
appropriate.

<script langauge="javascript"
src="$content.getURI("javascript/calendar.js")"></script>
Also, there's an error above.
"language"

 
-----Original Message-----
From: jill han [mailto:jhan@bynum.com] 
Sent: Friday, January 13, 2006 2:42 PM
To: Velocity Users List
Subject: RE: loading a javascript file 

It still won't work.
The error message on the IE browser showed an object is undefined.
In fact the object is defined in calendar.js

Thanks.
Jill

-----Original Message-----
From: Edward Song [mailto:esong@royalmedia.com]
Sent: Friday, January 13, 2006 1:32 PM
To: 'Velocity Users List'
Subject: RE: loading a javascript file 

Its a client side issue. 
Try
<script type="text/javascript"
src="$content.getURI("javascript/calendar.js")"/>

Edward Song
 

-----Original Message-----
From: jill han [mailto:jhan@bynum.com]
Sent: Friday, January 13, 2006 1:20 PM
To: Velocity Users List
Subject: loading a javascript file 


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




---------------------------------------------------------------------
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


Mime
View raw message