You can see the program at:
http://dante.acomp.usf.edu/Communica...ator/index.php
I am trying to dynamically add script tags to my webpage, but I get an
error that the first javascript literal object is not defined.
function initialize() {
insertScriptTag s("http://dante.acomp.usf .edu/CommunicationSi mulator/prototype.js");
insertScriptTag s("http://dante.acomp.usf .edu/CommunicationSi mulator/scriptaculous.j s");
insertScriptTag s("http://dante.acomp.usf .edu/CommunicationSi mulator/commsim.js");
CommSim.initial ize();
}
function insertScriptTag s(libraryName) {
var
l=document.crea teElementNS("ht tp://www.w3.org/1999/xhtml","script" );
l.setAttribute( "type", "text/javascript");
l.setAttribute( "src", libraryName);
document.getEle mentsByTagName( "head")[0].appendChild(l) ;
}
CommSim is defined in commsim.js, and it does getting added to the
document, when I look, using Firebug.
How do I get it to be usable by my application?
I am trying to see how little I need in my webpage, for demo purposes.
Thanx for any help.