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

Maximillian Schwanekamp lists at neptunewebworks.com
Thu Jun 16 02:29:52 CDT 2005


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?

-- 
Maximillian Von Schwanekamp
http://www.neptunewebworks.com/



More information about the thelist mailing list