velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jill han" <j...@bynum.com>
Subject load a file through javascript
Date Mon, 05 Jan 2009 15:31:43 GMT
We have a turbine/torque/velocity application. I tried to embed AnyChart
to the app. Here is the snippet of anychart.vm code

<script type="text/javascript" language="javascript">
//<![CDATA[
	var chart1 = new
AnyChart("$content.getURI("swf/AnyChart.swf")");
	chart1.width="550px";
	chart1.height="400px";
	
chart1.setXMLFile("$content.getURI('servlet/nequals1/template/portal,dat
a,data.xml')");
	chart1.write();
//]]>
</script>

AnyChart.swf is read fine. However, for some reason, the data.xml file
couldn't be read properly. It ended up with IO error.
Any help and suggestions will be appreciated as always.

Jill

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message