"Aaron Bertrand [MVP]" <> wrote in message
news:...
> > See my ASP example below wich I get to work in IIS 5.0
>
> Did you try <!--#include file=options.js--> or <script language=jscript
> runat=server src=options.js></script>?
>
Thank you. Include works well and imports the listbox content OK.
I actually ended up using <% Server.Execute("sites.ASP") %>
However I struggle to protect my javascripts in existing html pages. Thats
my goal.
One example is
http://home.online.no/~jensts/Satellite/Elevation.htm
It calls a jscript using <script src="filename" ></script>
Inside the pages I use onchange trigged functions from the jscript file.
I've tried for several days to make it as ASP but the only way to get it to
work is to give the scriptfile read access from internet side.
Also to run the script containing script functions at server or as
Server.Execute("file.ASP") causes the onchange event to
result in uknown object.
Perhaps ASP is not the best way of doing this ? - Could there be better
alternatives for this?