xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G. Wade Johnson" <gwa...@anomaly.org>
Subject Re: Loading a new document from script
Date Thu, 23 Oct 2008 11:53:02 GMT
Hi Cameron,

On Thu, 23 Oct 2008 17:13:35 +1100
Cameron McCormack <cam@mcc.id.au> wrote:

> Hi G. Wade.
> 
> G. Wade Johnson:
> > I know I should know the answer to this. I'd swear I've done it
> > before.
> >
> > How can I replace the current SVG document in Batik with JavaScript?
> >
> > The method I used in the browsers
> > (window.location.replace( new_url )) does not work on Squiggle
> > (versions 1.6 or 1.7).
> 
> Recent changes to SVG Tiny 1.2 include a subset of Window which would
> allow the above call to location.replace().  But no, it’s not
> implemented in Batik yet.

Darn. I was afraid of that. I guess I need to look at some Java code. I
was hoping to avoid it, but that's life.
 
> > I get the error:
> > 
> >     TypeError: Cannot call method "replace" of undefined
> > 
> > Obviously 'window.location' doesn't exist.
> > 
> > I have tried looking around the properties of both document and
> > window. The document object has some methods that looked promising,
> > but none appear to do what I need.
> 
> I don’t believe there is a way to do this from within script at the
> moment, actually.  I filed a bug to implement window.location, just
> as a note that it’s probably an easy thing to do, when I (or someone
> else) gets some time:
> 
>   https://issues.apache.org/bugzilla/show_bug.cgi?id=46072

Thanks for filing the bug.

G. Wade
-- 
"No Boom today. Boom tomorrow, There's always a boom tomorrow."
                                                 -- Ivanova, "Grail"

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message