
| email this FAQ to a colleague
Q: I want to find out the date on the client machine. How can I achieve this with ASP? A: You may be able to find it out on the client side but not on the server side. ASP files are only *executed* on the server side so they only have access to the server side objects and resources. SERVER ASP code gets processed and sent to client. This code could just be straight HTML or could include scripting. The scripting will only run at the server. It only has access to server side objects and resources. CLIENT HTML code gets read from server and processed. This code could just be straight HTML or could include scripting.
The scripting will only run at the client. It only has access to client side objects and resources. Never is any information, variables etc. passed between the two processes. This limits what you can accomplish. This is as specified with the HTTP protocol which basically states that you ask for a file and receive it. Client requests file - Get default.asp Default.asp is processed on the server machine. The results of that processing are passed to the client HTTP request Server response - Default.asp Results of 'get' passed to client machine Client machine may have script processing to do. Formats page based on HTML specification and processes and script. - Michael Schmidt |