PDA

View Full Version : Using DomHelper to insert a Script tag



harley.333
4 Jun 2009, 11:00 AM
Why isn't this working:


Ext.DomHelper.append(document.body, "<script type=\"text/javascript\" src=\"myScript.js\"></script>");

?

Animal
4 Jun 2009, 11:04 AM
It's just worked for me.

I mean I didn't get executable code, but it appended the tag, and sent the request, and got a 404 back from the server.

harley.333
4 Jun 2009, 11:23 AM
Yeah - I'm an ***** who can't spell. Sorry for the lame question.