I have a script that is not rendering the textwrap in svg properly.
//does not work .....
var svgLand = svgObj.getElementById("NarrDisplay");
mytextwrap=
document.createElement("text:wrap"); mytextwrap.setAttribute("x","20");
mytextwrap.setAttribute("y","30");
mytextwrap.setAttribute("width","640");
mytextwrap.setAttribute("style","fill:#000000; font-family:arial;
font-size:14; text-align:left; line-interval:1.25em;");
mytext=document.createTextNode("something here");
mytextwrap.appendChild(mytext);
svgLand.appendChild(mytextwrap);
//works ....
mynorm_text = document.createElement("text");
mynorm_text.setAttribute("x","30");
mynorm_text.setAttribute("y","90");
mynorm_text.setAttribute("style","fill:#000000; font-family:arial;
font-size:14; text-align:left;");
mytext=document.createTextNode("something here");
mynorm_text.appendChild(mytext);
svgLand.appendChild(mynorm_text);
It works when I use this statically:
<text:wrap id="NarrText" x="20" y="30" width="640" style="fill:#000000;
font-family:arial; font-size:14; text-align:left;
line-interval:1.25em;">default text</text:wrap>
Any help appreciated.
Mike