06.53 Using JScript Libraries in Other JScript Files

VERSIONS

2008, 2010

CODE

vstipProj0025

When you want to use your own custom JScript library, it’s a very straightforward process. You just click and drag the file from Solution Explorer into your web page.

image with no caption

Then start using the library:

image with no caption

But what if you want to use the library in another JScript file? No problem. To have one file used by another, just click and drag the file name from the resource file into the consuming file.

When you do, it makes a reference automatically:

And you can start using it ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.