H
HJK
I'm not familiar with ASP and server side scripting.
I want to include JScript from file. Can it be done ?
Its the part with the Options code I want to put in a Options.js
file not accessible from internet side. It will also be nice to extend it
to include
from different .js files later.
See my ASP example below wich I get to work in IIS 5.0
<% @Language = "JScript" %>
<%
// want to run the following code from file...
var Options
Options="\<option value=\>Line1\<\/option\>";
Options+="\<option value=\>Line2\<\/option\>";
Options+="\<option value=\>Line3\<\/option\>";
Options+="\<option value=\>Line4\<\/option\>";
%>
<html>
<head>
</head>
<form method="post" name="myform">
<table border="1" >
<tr>
<select name="MyListBox" size="10" style="FONT-FAMILY: Trebuchet MS">
<%
Response.write(Options);
%>
</select>
</tr>
</table>
</form>
</body>
</html>
I want to include JScript from file. Can it be done ?
Its the part with the Options code I want to put in a Options.js
file not accessible from internet side. It will also be nice to extend it
to include
from different .js files later.
See my ASP example below wich I get to work in IIS 5.0
<% @Language = "JScript" %>
<%
// want to run the following code from file...
var Options
Options="\<option value=\>Line1\<\/option\>";
Options+="\<option value=\>Line2\<\/option\>";
Options+="\<option value=\>Line3\<\/option\>";
Options+="\<option value=\>Line4\<\/option\>";
%>
<html>
<head>
</head>
<form method="post" name="myform">
<table border="1" >
<tr>
<select name="MyListBox" size="10" style="FONT-FAMILY: Trebuchet MS">
<%
Response.write(Options);
%>
</select>
</tr>
</table>
</form>
</body>
</html>