What is the correct syntax for adding an external reference to a JavaScript file (.js) within another JavaScript file?
-
Why do you need such a reference?Šime Vidas– Šime Vidas2010-10-18 22:19:26 +00:00Commented Oct 18, 2010 at 22:19
-
I am trying to add a reference to the jQuery source files and do not have access to the raw source code. Working with a vendor application that is managed through an administrative area.Michael Kniskern– Michael Kniskern2010-10-18 22:29:46 +00:00Commented Oct 18, 2010 at 22:29
Add a comment
|
3 Answers
There isn't any.
You can add a <script> block to the document, but it will execute asynchronously.
2 Comments
T.J. Crowder
@Michael: If you aren't (using JavaScript on a browser), you'll have to use whatever mechanisms exist in your environment that allow you to load code. There's bound to be something, even if (in the absolute worst case) it's loading the file as text and then eval'ing it.
Michael Kniskern
I was able to add a reference to the java script in some of the HTML code managed through the UI.