Automatic Time Input

G

GitarJake

Hello all,

I am very new to ASP programming. My experience so far is limited to VBA
in Windows based apps like Access, Excel etc.

Is ASP event driven like Visual Basic?

If so, can ASP cause the server time to be input into a field on a double
click event?

Thanks,

Jake
 
R

Ray at

One of the biggest mental hurdles for programmers who have created client
based applications to get over is the concept of ASP being a server side
technology that is presented in a client side realm. So, just remember that
ASP is something that's running on a Web server. A double click is a
browser event. The server has no idea what is going on in the browser.
From the server's point of view, a request comes in, typically from a
browser, the ASP page is executed by IIS, and an output is sent back to
whatever made the request. This output is typically html being sent to a
browser. At that point, the server is finished and it will have no clue if
anyone double clicks on anything or anything like that, unless you use a
client-side action to send another request to the server.

Ray at home
 
A

Aaron Bertrand [MVP]

If so, can ASP cause the server time to be input into a field on a double
click event?

Not very easily, as Ray explained you'll have to go back to the server for
that. There are some workarounds/hacks involving hidden frames or iframes
but IMHO they're more trouble than they're worth.

You can easily use client-side script to enter the client time anywhere on
the page based on user activity (why should the user care what time it is on
the server?).
 
G

GitarJake

(why should the user care what time it is on
the server?).

I was thinking along this line for a help desk app on 2 or more web servers
that would be accessed nationally that would:

a) Account for time zone differences (Help desk guy sees a new case,
timestamped server time but displayed local time)
b) and Track and display cumulative time on the case (When Help desk guy
opens or closes the case, some automatic function creates a "Modified"
timestamp)

Soooo, I was thinkin' (dangerous, i know), if the server kept track of the
time on the case, we could display it appropriately based on a user's
timezone.

TIA,

Jake
 
C

Captain Flack

GitarJake said:
I am very new to ASP programming. My experience so far is limited to VBA
in Windows based apps like Access, Excel etc.

Is ASP event driven like Visual Basic?

If so, can ASP cause the server time to be input into a field on a double
click event?

You could write javascript for single click putting the server time into
a field. However, if you are more familiar with event driven programming
like VBA, you might find it easier to checkout ASP.net rather than
'classic' ASP.

www.asp.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,151
Messages
2,570,854
Members
47,395
Latest member
GennieGinn

Latest Threads

Top