Hi Group,

I have a simple SVG document that makes use of Batik's getURL()
method to retrieve an XML fragment from the a server (the SAME server
that the document is downloaded from).

If I view this document with Squiggle, all works correctly: the embedded
javascript in the document periodically updates the document
according to what it retrieves from the server.

I also have an applet (based on AppletDemo.java which I have very lightly
modified to accept the name of the SVG document to use as
a parameter from the <applet ... tag).

If I retrieve the SAME SVG document for rendering by my applet
(which is embedded into an HTML document, of course), I get a
NullPointerException, reported in ECMAScript as a JavaException.

I BELIEVE that this is because window.getURL is only a wrapper to the
underlying browser's getURL facility. Squiggle supplies such a facility,
whereas nothing is being exposed to my Applet.

My questions for the group are: how do I obtain a usable getURL? is
there a way of getting to the underlying browser's XMLHttpRequest
instance?

I see MANY comments saying that "Batik may be used to create an applet
viewer" but NO examples that are relevant to what I am trying to do
(AJAXify my document).

I should point out that in the past, I have put into production such
AJAX/SVG systems using Adobe's viewer but now that ASV3 is going
"end of life", I am trying to replace ASV3 with Batik.

Suggestions/comments gratefully accepted.

Cheers,

BOB



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to