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() {
insertScriptTags("http://dante.acomp.usf.edu/CommunicationSimulator/prototype.js");
insertScriptTags("http://dante.acomp.usf.edu/CommunicationSimulator/scriptaculous.js");
insertScriptTags("http://dante.acomp.usf.edu/CommunicationSimulator/commsim.js");
CommSim.initialize();
}
function insertScriptTags(libraryName) {
var
l=document.createElementNS("http://www.w3.org/1999/xhtml","script");
l.setAttribute("type", "text/javascript");
l.setAttribute("src", libraryName);
document.getElementsByTagName("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.