View Full Version : Basic Server Side JavaScript Questions

08-24-2007, 02:50 AM
I am looking into using server side JavaScript for the first time, and I am trying to run some basic tests without much luck.

My goals at this point are not lofty: I want to be able to output text to the screen. I can run a connection to the database using SSJS in a separate .ASP file using the tag

<script language="JavaScript" runat="server">

but when I try to output anything to the webpage I am smashing into a brick wall. I have developed before (mostly in Java) so this is pretty embarrassing that I have not been able to figure this out.

I am running the site on a Microsoft Windows 2003 Server, which, I am suspecting is why the

write("Display me!");

is not working. But if that is an incorrect assumption please correct me. I have tried all sorts of variations of

<script type="text/javascript" language="JavaScript" runat="server">
document.write("blah blah blah");

but can't get a single thing to output.

If anyone has advice or tutorials to send me to I would really appreciate it, I am at a loss on my own.