[Javascript] SRC=Javascript file

Andrew Gibson andyg at ihug.co.nz
Thu Apr 19 07:31:12 CDT 2001


Sorry, of course I meant it to be
 > : <% txt=now  %>
 > : alert (<%=txt%>);

seems to be working now though

 > :
 > : <% txt=now  %>
 > : alert (txt);
 > :
 > : Can I do that somehow?  Didn't seem to work when I tried it.
 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 > 
 > ASP is all done server-side - before anything is sent to the client. You
 > need to Response.Write the ASP stuff to the HTTP stream that is 
 > sent to the
 > client, eg:
 > 
 > alert("<% Response.Write("Hello World")%>");
 > 
 > or
 > 
 > var strVar = "<% Response.Write("Hello World")%>";
 > alert(strVar);
 > 
 > HTH
 > 
 > Cheers
 > Ken





More information about the Javascript mailing list