javascript thread: RE: passing variables from javascript to vbscrip- t ??? Can I use ASP without IIS
My company created its own serverapp. Can I use ASP without IIS?
-----Original Message-----
From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]
Sent: Friday, July 27, 2001 12:00 PM
To: javascript
Subject: [javascript] RE: passing variables from javascript to vbscript
Code that is surrounded by <%%> is ASP code that runs on the server. By
general conbvention vbscript is the language used for ASP scripting,
although javascript can be used as well. For server-side scripting, the
language is set with <%@LANGUAGE = "vbscript"%>, which can only be written
once, in the first line of the ASP page. Server-side scripting is used to
query databases etc and build up the HTML that makes up the page. It is
processed first, on the server, then the resulting HTML is sent to the
browser.
Once in the browser, the HTML is rendered, and any client side scripting is
executed. Any kind of event that occurs in the browser (clicking buttons
etc) has to be handled with client side script. Likewise any manipulation
of the document object model can only be done client side.
Once again, the general convention with client-side scripting is to use
javascript. If you know that your users all use IE, then you can use
vbscript client-side, but if you want to support other browsers you must use
javascript.
Client side script is delimited by these tags:
<SCRIPT LANGUAGE="javascript">
//javascript goes here
</SCRIPT>
So, sort out your code with the proper script tags so you've got everything
running in the client, and see how you get on.