Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic js load

Status
Not open for further replies.

SirEddy

Programmer
Oct 24, 2005
10
US
At wits end here. Why does this work on a local basis but when uploaded to website it does not.

function loadJSscript(TheFile){
sscriptFileNameFinal=TheFile
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = jsscriptFileNameFinal;
document.getElementsByTagName('head')[0].appendChild(script);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top