How can I create external Javascript libraries which i can use in my web application project created in Visual studio?
-
You mean like JQuery, MooTools?Shamim Hafiz - MSFT– Shamim Hafiz - MSFT2012-01-02 12:17:14 +00:00Commented Jan 2, 2012 at 12:17
-
3Store your JavaScript code in a file and include it where you want to have it? I don't really understand the question.Felix Kling– Felix Kling2012-01-02 12:18:57 +00:00Commented Jan 2, 2012 at 12:18
Add a comment
|
1 Answer
You can create library simply as a file, saved with the extension .js, that contains some JavaScript code.
Add a < script > tag, defined on the page(s) that uses the library, used to "connect" to the library
If library name is displaydate.js
You can include it in your code with this tag < script src="displaydate.js" >
Refer: http://www.javascriptkit.com/javatutors/external2.shtml