Bug 48473

Summary: Support XMLHttpRequest (a.k.a. XHR)
Product: Batik - Now in Jira Reporter: Helder Magalhães <helder.magalhaes>
Component: ScriptingAssignee: Batik Developer's Mailing list <batik-dev>
Status: NEW ---    
Severity: enhancement    
Priority: P4    
Version: 1.8   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Helder Magalhães 2010-01-02 06:23:13 UTC
Although the standard way to perform server communication in SVG seems to be using getURL/postURL (standardized in SVG Tiny 1.2 [1]), Batik already supports a number of extensions [2] so the question is... Why not? :-)

Cameron has stated that a half-baked implementation was underway [3]; also, within the same thread, there's a hints towards the possibility of using Apache CXF technology.

Yesterday, I found a script implementation [4] (part of scripting, for which there's a separate issue, bug 45948), which might be possible to integrate with little effort. I've also found another script implementation [5], part of jQuery.

[1] http://www.w3.org/TR/SVGTiny12/ecmascript-binding.html
[2] http://xmlgraphics.apache.org/batik/status.html#ecmascript
[3] http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/200711.mbox/%3C20071119220831.GA14468@arc.mcc.id.au%3E
[4] https://scripting.dev.java.net/source/browse/*checkout*/scripting/scripts/javascript/ajax/ajax.js?content-type=text%2Fplain&rev=1.1
[5] http://dev.jquery.com/browser/trunk/jquery/build/runtest/env.js
Comment 1 Helder Magalhães 2010-10-04 12:30:34 UTC
Thomas has hinted towards a feasible way to do this in an applet context [1].

Of course a native implementation would be more desirable as a generic solution but, when using Batik as a (lack of) native SVG support replacement/enhancement, this may prove very useful :-)

[1] http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/201009.mbox/browser#msg-5