I provided you exactly that. I'll quote for a moment that your request was "*without*
having to dynamically write <script> tags."
Hunlock's article is "dynamically inserting" JavaScript (or CSS). Inserting elements is
different than "writing" a <script> tag. E.g.:
document.write('<script type="text/javascript" src="x.js">...<\/script>');
My meager function made no attempt to "write" anything. Least of all a script tag.
It did however "dynamically insert" the script element, modify its values, and then append
it to the existing head element.
Google: Javascript append contenthttp://
www.google.ca/search?num=100&hl=en&safe=off&client=firefox-a&r...
Google: Javascript dynamic writehttp://
www.google.ca/search?num=100&hl=en&safe=off&client=firefox-a&r...
With the majority of the results' subjects being the same across the two
search terms (and a number of pages being the same across both search
results), I'd say they were both about the same damn thing.
Or in other words: Po-tay-to, po-tah-to; to-may-to, to-mah-to. Same
shit, different pile.
In fact, many sites consider the two methods to be the same thing:
http://www.codehouse.com/javascript/articles/external/
and make the distinction between them by calling one a "static" method,
and the other the "DHTML" method.
And the difference between "appending" and "writing" are very slim
indeed. In either way, content gets "written" into the page, it's simply
the method that is used that changes. One uses a direct, sledge-hammer
like method, and the other uses fancy DHTML tricks to lock onto a
pre-existing tag and shoehorn the content in after the tag.
Kind of like the difference between pencilling in the margins of a book,
and making a proper footnote. The DHTML method is simply more
"professional" and more compliant with modern web standards than the
other. Otherwise, they both dynamically add content to the web page, be
it <script> tags or other stuff.
So, once again, I am *not* looking for methods that will "dynamically
insert" or "dynamically append" or "dynamically write" or "dynamically
add" or do to the web page itself any other dynamic action whose
definition you care to whimsically constrict to absurdly narrow parameters.
In other words, I am looking for a way of calling additional JS files
from within the "original" external JS file, without having <script>
tags added, in any way whatsoever, to the web page.
Just as I had originally asked. Was that really so hard to comprehend???
...Geshel.
--
***********************************************************************
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
***********************************************************************
* "I contend that we are both atheists. I just believe in one fewer *
* god than you do. When you understand why you dismiss all the other *
* possible gods, you will understand why I dismiss yours." *
* - Stephen F. Roberts *
***********************************************************************
* "Anyone who believes in Intelligent Design ("creationism") is just *
* as ignorant, irrational and ill-educated as someone who believes *
* that the world is a flat disc, that the Sun circles the Earth or *
* that there really is a tooth fairy. Darwinism has an overwhelming *
* foundation of evidence that can be tested and reproduced. *
* *
* "Intelligent Design, on the other hand, has no evidence at all; not *
* one single shred of testable proof. As such, Intelligent Design is *
* Religious Mythology, and has no right whatsoever to be in our *
* Science classrooms." - 99.99+% of Scientists *
***********************************************************************
Mignon McLaughlin once said that "A nymphomaniac is a woman [who is]
as obsessed with sex as the average man." Unfortunately, since true
nymphomaniacs are so rare, this means that it takes an extraordinary
woman to keep up with an ordinary man.
***********************************************************************- Hide quoted text -
- Show quoted text -