Client-side vs Server-Side Scripting
Client-side scripting is interpreted on the local PC the users
borwser.
Server-side scripting is interpreted by the web server reuslting
in a plain HTML page output.
Client-side Scripting
Adding scripts to HTML pages
<script language=XXXX>
....script code>
</script>
Where XXXXX is either VBscript or JScript,
Server-side Scripting
Adding scripts to HTML pages
<script runat=SERVER language=xxxxx>
....script code
</script>
or using <%=%> delimers
Example: display the current date (Server-side scripting
<html>
<head>
<title>Writing the Current date to a document with VBscript</title>
</head>
<body>
This is your first script example, Today's date is
<Script runat=server language=vbscript>
<!--
Response.Write(Date)
//-->
</script>
</body>
</html>
or using <%=%> delimers
<html>
<head>
<title>Writing the Current date to a document with VBscript</title>
</head>
<body>
This is your first script example, Today's date is
<%=date()%>
</body>
</html>
|