Dynamic loading of script element does not have any effect

Hello,

I have tried to load the following script element dynamically to the SVG document using DOM.

var e = document.createElement(“script”)

e.setAttribute(“type”, “text/javascript”) e.setAttributeNS(“XLink namespace”;, “xlink:href”,“prueba.js”) document.documentElement.appendChild(e)

And i found that the script file not loaded when i make a method call.

Does anybody have any solution?

Subject: Dynamic loading of script element does not have any effect

You can refer to the MSDN DHTML reference,as I usually do, to check the validity of loading a special element dynamically.

Subject: Dynamic loading of script element does not have any effect

You can refer to the MSDN DHTML reference,as I usually do, to check the validity of loading a special element dynamically.