[haXe] How to set attributes with namespace (JS)
Andreas Känner
andreas at projectwizards.net
Tue Nov 7 18:16:38 CET 2006
Hi,
I'm a newbie to haxe and Javascript in general. I wonder how I can
set an attribute for a js.HtmlDom element with an associated
namespace. In JavaScript I would write this:
var bar = document.createElementNS(svgns,"rect");
bar.setAttributeNS(null, "x", 10);
...
But I did not find createElementNS in haXe. Is there a way to do it?
Thank you,
Andreas
More information about the Haxe
mailing list