M
Martin Walke
Hi all,
Can someone help me out here? I'm been using ASP and VBScript for some years
but have just ventured into the realms of using server side Javascript and
apart from hitting various niggerly problems, this one baffles me.
This is a very simplistic example of the problem.
<%@ Language="JavaScript"%>
<html>
<body>
Here it is
<script language="javascript" runat="server">
Response.Write("in the")
</script>
middle
</body>
</html>
When I run this I get
"Here it is middle in the" rather than "Here it is in the middle".
Can someone tell me why? If I use <%= then it's fine but my main program is
using a javascript server side include which I'm including by using the
<script src ....> as I can't get the <!--#include method to work.
Am I confusing myself totally by messing up what I thought to be VBScript
and Javascript commands? Or is it something to do with the way in which the
page in parsed for server side commands?
TIA
Confused Martin
Can someone help me out here? I'm been using ASP and VBScript for some years
but have just ventured into the realms of using server side Javascript and
apart from hitting various niggerly problems, this one baffles me.
This is a very simplistic example of the problem.
<%@ Language="JavaScript"%>
<html>
<body>
Here it is
<script language="javascript" runat="server">
Response.Write("in the")
</script>
middle
</body>
</html>
When I run this I get
"Here it is middle in the" rather than "Here it is in the middle".
Can someone tell me why? If I use <%= then it's fine but my main program is
using a javascript server side include which I'm including by using the
<script src ....> as I can't get the <!--#include method to work.
Am I confusing myself totally by messing up what I thought to be VBScript
and Javascript commands? Or is it something to do with the way in which the
page in parsed for server side commands?
TIA
Confused Martin