[thelist] Proper Way of Separating 'Library' Files in JS

Matt Warden mwarden at gmail.com
Thu Jun 16 02:33:26 CDT 2005


On 6/16/05, Maximillian Schwanekamp <lists at neptunewebworks.com> wrote:
> Matt Warden wrote:
> > <script type="text/javascript" src="js/lib/hashtable.js"></script>
> > <script type="text/javascript" src="js/lib/mylibrary.js"></script>
> > But, this is a bit odd, as anyone using my library would need to make
> > sure they are including lib/hashtable.js as well, or things would not
> > go well.
> Perhaps write mylibrary.js as mylibrary.php (or .asp, etc) with
> appropriate content-type headers set in the output?

I cannot do this, as the library is intended for general release, and
I cannot count on users having a certain (or any) server-side
scripting language available.

Matt Warden
Miami University
Oxford, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list