Forums

This topic is locked

Server-side Includes vs. JavaScript Includes

Posted 18 Jul 2003 16:02:02
1
has voted
18 Jul 2003 16:02:02 Katherine Williams posted:
I was wondering if one was better than the other when it comes to using JavaScript scripts in SSI's vs. JS inside of <SCRIPT> tags.

Examples:
1)SSI: <!--#include virtual ="/css.asp" -->
The "css.asp" include file has a script located inside of a <script language="JavaScript">

2) JS: <script language="JavaScript" src="rbvalidation.js"></script>
The "rbvalidation.js" page has a script without the <script language="JavaScript"> tag, because the tag's actually located on the webpage itself.

I would like to have everything universal on my site, so I want to work with what's the proper way to do things. Any help would be appreciated. Thanks.

KWilliams

Reply to this topic