Fred said the following on 12/27/2006 6:05 AM:
alex wrote:
>my html page like this:
[...]
>Scriptaculous.load();
above code will dynamically generate tag <script>.....
i think i should be 9 instead of 2.
anyone can give your opinion?
In Firefox, getElementsByTagName doesn't work properly if used in the
head as the docment loads with dynamically created script elements.
Also, the scriptaculous "loader" script is crap. Try this thread for a
solution:
All of that to simply load a .js file? Why make it so difficult?
<URL:
http://groups-beta.google.com/group/comp.lang.javascript/browse_thread/thread/145dcdbddbb78612/b604daea4acaa1a7?lnk=gst&q=loadJSFile&rnum=10#b604 daea4acaa1a7>
How much simpler can it get to load a .js file on the fly? And, it
doesn't matter if it is during page load or after.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/