Hello everyone,
First of all, let me say hello to you all in my first post as a member of Webdeveloper.com. It is not likely I’ll be able to maintain a lot of activity here – I’m very active in a number of discussion groups, and my time is exceptionally limited. But I’m a great believer in the power of collaborative knowledge, and I’m hoping there are enough similar-minded people here who can help me with a very complex JavaScript issue I’m having at the moment. So here goes!
I’m about 95% of the way done programming an e-learning module system, done completely through XHTML, CSS and JavaScript. It must be done through JavaScript, because the contents of the system need to be downloadable and executed from individual PCs, but compiling is not an option either. So, JavaScript is the solution.
Here’s where I’m running into problems. I am attempting to automatically generate the tags necessary to open a connection to various .js files. I need to be able to dynamically generate the following: <script type=”text/javascript” src=”path[b]1[b]2
I’ve gone so far as to generate the code that links to each .js file, but how do I make it so this generated <script> link actually functions, instead of just being a non-functional string? I need it to be recognized by the browser as HTML, pull values from the location specified, then replace it with another path, recognize it as HTML, pull values again, etc.
Does this make any sense?