batik-users@xmlgraphics.apache.org
[Top] [All Lists]

Re: JavaScript problem with flowText/flowRoot element.

Subject: Re: JavaScript problem with flowText/flowRoot element.
From: "Musbah Sagar"
Date: Tue, 23 Aug 2005 13:24:12 -0700
Hi Thomas,..

It worked ,... you've saved my day.

The problem was that I get odd error messages (null) when I try to append flowRoot element to a parent element. But now I only try to do that once the structure of flowRoot is complete and correct.

Many thanks.

Musbah.

----- Original Message ----- From: "Thomas DeWeese" <Thomas.DeWeese@xxxxxxxxx>
To: <batik-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, August 23, 2005 5:10 AM
Subject: Re: JavaScript problem with flowText/flowRoot element.


Hi Musbah,

Musbah Sagar wrote:

Thanks for the quick reply and for the hint.

I have added the version attribute and now I am able to create flowRoot element but I am having a problem when I try to attach the flowRoot to a parent:

   Care to let me know what the problem is?

   I'll say that I don't know if this stuff has been tested in
dynamic environments but what I've seen you do so far I think should
work.


var flow= svgDocument.createElementNS("http://www.w3.org/2000/svg","flowRoot";);

svgDocument.documentElement.appendChild(flow); // Or any other node.

  Do I assume that you have left off the construction of the rest of
the elements required for a valid flowRoot element (flowRegion,
flowText, etc)?


Any idea how to come around this one?

Musbah.



----- Original Message ----- From: "Thomas DeWeese" <Thomas.DeWeese@xxxxxxxxx>
To: <batik-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, August 23, 2005 2:43 AM
Subject: Re: JavaScript problem with flowText/flowRoot element.


Hi Musbah,

  Most likely you don't have the 'version' attribute on
the root SVG element set to "1.2".  If this is not set
then Batik will not turn on any SVG 1.2 features.

Musbah Sagar wrote:

I have a problem regarding the use of flowText element,...
I am trying to generate flowText/flowRoot element from JavaScript but I get the following error message: The current document is unable to create an element of the requested type (namespace: http://www.w3.org/2000/svg, name: flowText).
 Does anyone know how to solve this?


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxxxxxxxxxx




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxxxxxxxxxx



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxxxxxxxxxx




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>