J
John MacIntyre
Hi,
I am having a problem executing server side javascript.
For some reason the script tag is ignored when the runat=server is combined
with the src attribute. The code is being used client side also, so
embedding it right into the page is not an option.
I have also tried the following code without success.
<script language=javascript runat=server>
<!-- #include file="T.js" -->
</script>
The problem is issolated in the following example.
Thanks in advance.,
John MacIntyre
VC++ / VB / ASP / Database Developer
http://www.johnmacintyre.ca
---------------------------
T.asp
---------------------------
<%@ Language=VBScript %>
<html>
<script language=javascript runat=server src="T.js"></script>
<script language=javascript runat=server>
function local_calcTotal( nA, nB)
{
return (nA + nB);
}
</script>
<body>
<%=now()%></P>
local calc : <%=local_calcTotal( 2, 2)%></P>
remote calc : <%=remote_calcTotal( 2, 2)%></P>
</body>
</html>
I am having a problem executing server side javascript.
For some reason the script tag is ignored when the runat=server is combined
with the src attribute. The code is being used client side also, so
embedding it right into the page is not an option.
I have also tried the following code without success.
<script language=javascript runat=server>
<!-- #include file="T.js" -->
</script>
The problem is issolated in the following example.
Thanks in advance.,
John MacIntyre
VC++ / VB / ASP / Database Developer
http://www.johnmacintyre.ca
---------------------------
T.asp
---------------------------
<%@ Language=VBScript %>
<html>
<script language=javascript runat=server src="T.js"></script>
<script language=javascript runat=server>
function local_calcTotal( nA, nB)
{
return (nA + nB);
}
</script>
<body>
<%=now()%></P>
local calc : <%=local_calcTotal( 2, 2)%></P>
remote calc : <%=remote_calcTotal( 2, 2)%></P>
</body>
</html>