That certainly did it. Any reason why it adds extra attributes that I don't specifically set?
Michael Bishop -----Original Message----- From: Archie Cobbs [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 11:41 AM To: [email protected] Subject: Re: Error importing Images into an image tag? Bishop, Michael W. CONTR J9C880 wrote: > When I try to link in an Image, I add the x, y, width, height, and > xlink:href attribute. When I place the Element on the JSVGCanvas, I get > an error telling me that xlink:href is required. I do have it as I can > verify by viewing the source of my document: > > element.setAttribute("xlink:href", imageName); You need to use setAttributeNS() instead. -Archie ________________________________________________________________________ __ Archie Cobbs * CTO, Awarix * http://www.awarix.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
