Dynamic script node in Safari

JavaScript and client side scripting.

Moderator: General Moderators

Locked
User avatar
boba
Forum Newbie
Posts: 15
Joined: Sun Feb 04, 2007 2:46 pm
Location: Kharkov, Ukraine
Contact:

Dynamic script node in Safari

Post by boba »

Hey, everybody!

Here is simple JS code which I am using to create new <script> tag in the document.

Code: Select all

scriptNode = document.createElement("script");
scriptElement = this.container.appendChild(scriptNode);
scriptElement.src = src;
Everything is ok with this code when it is executedin IE, FF and even Opera.
But it's not ok in Safari!!!

Can I make AJAX request to external host? or what can I do to make this code working in Safari?

Sorry for specific English :) and thanks for help!
Locked