Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache and js files

Status
Not open for further replies.

ndogg

Programmer
Feb 7, 2000
156
US
Does anyone know if Apache has support for js files?&nbsp;&nbsp;And if so, how would I know if the support is enabled on a remote server (the one that is hosting my web page)? <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Depends what you want supported.&nbsp;&nbsp;If you mean &quot;Can I place a HREF in my HTML that points to the JavaScript to be loaded?&quot; then the answer should be &quot;yes&quot;.<br><br>IIRC, instead of putting JavaScript into several pages, you can just put a link back to a single .js file in each page.&nbsp;&nbsp;Apache will then serve it up just as it would any other page.&nbsp;&nbsp;(eg, try putting a &quot;.txt&quot; file on your site and calling it &quot;myfile.blah&quot;, then put&nbsp;&nbsp;an HREF to it in one of your pages - you'll still get the &quot;.txt&quot; file even though Apache doesn't officially know about files of type &quot;.blah&quot;<br><br>If you mean &quot;Can Apache load and interpret server-side JavaScript?&quot;, then that's a whole other story :)&nbsp;&nbsp;There's probably a module that will allow this, but I'm not sure where it is or how you would tell if it is loaded.<br><br>HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top