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'); wrapText1.setAttributeNS(null, 'x', 590); wrapText1.setAttributeNS(null, 'y', 485); wrapText1.setAttributeNS(null, 'width', 410); wrapText1.setAttributeNS(null, 'text-align', 'Justify'); wrapText1.setAttributeNS(null,"pointer-events","none"); var commentText = svgDoc.createTextNode("the text"); wrapText1.appendChild(commentText); svgDoc.getElementById("map1").appendChild(wrapText1); No error message, but the text is not displayed either. (2). In SVG script, I have a text:wrap element, then in Javascript, use setAttribute to change the wrapped text svg code: <text:wrap id="comments" x="590" y="490" width="410" style="font-family: arial; fill:red; font-size: 15px; text-align: justify; line-interval: 1.2em">--</text:wrap> javascript code: svgDoc.getElementById("comments").firstChild.nodeValue="the txt"; This can wrap text, but instead od replacing old text( this is what I want), the new text overlaps old ones. I am stuck in here for many days. Please advise how I can display wrapped text through JavaScript! Your help will be greatly appreciated. Spring ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/