[svg-developers] wrap text - problem to create a text:wrap element by javascript

2005-04-19 Thread tangdm
Hi All, To wrap and display text(a map element's attribute value) on the map, I tried two approaches: (1)Create a text:wrap element in Javascript like this: var textns ="http://xmlns.graougraou.com/svg/text/";; wrapText1= svgDoc.createElementNS(textns, 'text:wrap');

Re: [svg-developers] wrap text - problem to create a text:wrap element by javascript

2005-04-27 Thread Ronan Oger
First delete the text node, then create it again. That's most likely the solution to your problem. On Tuesday 19 April 2005 23:24, tangdm wrote: > This can wrap text, but instead od replacing old text( this is what I > want), the new text overlaps old ones. -- Gravity is a myth, the Earth suck