Hi Tony,

does your file work in other browsers like Opera, Firefox, Safari, 
etc?

the Adobe viewer was very forgiving when users used non-standard 
javascript/DOM methods. Other viewers are not. There might be some 
issues when trying to run SVG files specifically designed for the 
Adobe viewer. See http://jwatt.org/svg/authoring/ for some details on 
potential issues. If you follow these guidelines, your examples 
should work fine with all major SVG viewers.

Regarding Batik: it might be useful to check the nightlies, available 
from http://people.apache.org/builds/xml-batik/ or checkout the 
sources with svn. The beta is already quite old compared with the 
trunk.

Hope you can fix your problems,
Andreas

--- In [email protected], "Tony" <[EMAIL PROTECTED]> wrote:
>
> I'm a developer new to SVG.  I'm using Adobe SVG Viewer and Batik 
> Squiggle 1.7 beta to view my code.  Even though Batik supposedly 
> supports Javascript now, every time I load an SVG with embedded 
> Javascript--which runs fine in ASV--I get a security error:
> 
> >Scripts of type (text/javascript) cannot be loaded and executed 
with
> >the current security settings.
> 
> Here are the details:
> >java.lang.SecurityException: Scripts of type (text/javascript) 
> cannot be loaded and executed with the current security settings.
> >     at 
> >org.apache.batik.swing.svg.AbstractJSVGComponent
$BridgeUserAgentWrapp
> er.checkLoadScript(Unknown Source)
> >     at 
> 
>org.apache.batik.bridge.BaseScriptingEnvironment.checkCompatibleScrip
> tURL(Unknown Source)
> >     at 
> >org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts
(Unknown 
> Source)
> >     at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent
> (Unknown Source)
> >     at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent
> (Unknown Source)
> >     at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run
> (Unknown Source)
> 
> This happens even with the security settings disabled in Edit--> 
> Preferences.  When I edit the code to remove the 
> type="text/javascript" attribute, or edit it to 
> type="text/ecmascript" the code either throws another error or it 
> doesn't work at all.
> 
> Worse, when I try to look up this problem on the Apache Batik web 
> site, or on this forum, no one else seems to have this difficulty.
> 
> Could you tell me if anyone else has had this problem, and what, if 
> anything, can be done?
> 
> Thank you.
> 
> Tony G. Harris
>




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to