...

View Full Version : Basic Server Side JavaScript Questions



JackJack
08-24-2007, 02:50 AM
Hello,
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



<SERVER>
write("Display me!");
</SERVER>


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");
</script>


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.

Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum