posted 19 years ago
Hi,
Can someone tell me how to set the text content of an SVG text Element
in javascript (ecmascript)?
Here is a sample of the problem:
My question is, what is the setmethod??, or the name of an "attribute" that will assign the text to this SVG text Element?
Explanation: The sample code illustrates how to use javaScript to create and set attributes to SVG elements such as rect, circle, and text (assuming you just want to modify attributes of a known text element by its "id").
I just can't find how to set the body content. Static SVG code will not suite my application.
Thanks for your help.
Juan Rolando Prieur-Reza, M.S., LSSBB, SCEA, SCBCD, SCWCD, SCJP/1.6, IBM OOAD, SCSA