Folks,

I thought the rhino engine was in force by default, but I'm getting the
following error:

java.lang.Exception: Unknown language: text/ecmascript
   at org.apache.batik.bridge.BridgeContext.getInterpreter(
BridgeContext.java:554)
   at org.apache.batik.bridge.BaseScriptingEnvironment.getInterpreter(
BaseScriptingEnvironment.java:289)
   at org.apache.batik.bridge.BaseScriptingEnvironment.getInterpreter(
BaseScriptingEnvironment.java:285)
   at org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoad(
BaseScriptingEnvironment.java:590)
   at org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoadEvent
(BaseScriptingEnvironment.java:549)
   at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(
UpdateManager.java:239)
   at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(
UpdateManager.java:220)
   at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(
SVGLoadEventDispatcher.java:100)


and where it is choking, this will look familiar to some as CartoNet's
dynamic map data example:
   <script type="text/ecmascript"
xlink:href="./arizriver/helper_functions.js"/>
   <script type="text/ecmascript" xlink:href="./arizriver/mapApp.js"/>
   <script type="text/ecmascript" xlink:href="./arizriver/timer.js"/>
   <script type="text/ecmascript" xlink:href="./arizriver/slider.js"/>
   <script type="text/ecmascript" xlink:href="./arizriver/button.js"/>
   <script type="text/ecmascript"
xlink:href="./arizriver/checkbox_and_radiobutton.js"/>
   <script type="text/ecmascript" xlink:href="./arizriver/navigation.js"/>
   <script type="text/ecmascript"><![CDATA[
       //global variables for mapApp and map object
       var myMapApp = new mapApp(false,undefined);
       var myMainMap;

       function init(evt) {


I've made sure js.jar is in the classpath, and have read all I can find on
enabling scripting, including the discussion of disabling scripting support
by setdocumentstate to always.dynamic which I didn't follow as I thought
setting it to always.dynamic made sure scripting was supported. I'm using
the 1.6 release of Batik.

In any case, the svg file works great in ASV, Firefox, and IE, so I'm going
on it's my implementation of JSVGCanvas, I'm thinking somwhere I'm either
not adding scripting support or turning it off somehow.

Any thoughts appreciated,

Thanks,

K. W. Landry

Reply via email to