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 IamaSherpa 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

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 :)
 
I don't know about Apache specifically,&nbsp;&nbsp;but I can't imagine any web server not supporting javascript.&nbsp;&nbsp; <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Sorry, you misunderstood my question.&nbsp;&nbsp;Someone answered it somewhere else.<br><br>(-General UNIX discussion)<br><font color=red><br>AndyBo (MIS)<br>Mar 30, 2000<br>Depends what you want supported.&nbsp;&nbsp;If you mean &quot;Can I place a HREF in<br>my HTML that points to the JavaScript to be loaded?&quot; then the answer<br>should be &quot;yes&quot;.<br><br>IIRC, instead of putting JavaScript into several pages, you can just put a<br>link back to a single .js file in each page.&nbsp;&nbsp;Apache will then serve it up just<br>as it would any other page.&nbsp;&nbsp;(eg, try putting a &quot;.txt&quot; file on your site and<br>calling it &quot;myfile.blah&quot;, then put&nbsp;&nbsp;an HREF to it in one of your pages - you'll<br>still get the &quot;.txt&quot; file even though Apache doesn't officially know about files<br>of type &quot;.blah&quot;<br><br>If you mean &quot;Can Apache load and interpret server-side JavaScript?&quot;, then<br>that's a whole other story :)&nbsp;&nbsp;There's probably a module that will allow this,<br>but I'm not sure where it is or how you would tell if it is loaded.<br><br>HTH. <br></font> <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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top