|
Home > Archive > IIS ASP > May 2004 > Automatic Time Input
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Automatic Time Input
|
|
| GitarJake 2004-05-11, 10:35 pm |
| 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
| |
| Ray at 2004-05-11, 11:36 pm |
| 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
"GitarJake" <wiekiewatchee@spamkiller.net> wrote in message
news:_Nfoc.567$Md.38@lakeread05...
> 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
>
>
| |
| Aaron Bertrand [MVP] 2004-05-12, 12:38 am |
| > 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?).
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
| |
| GitarJake 2004-05-12, 5:02 pm |
|
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
news:uVyGjj9NEHA.3380@TK2MSFTNGP11.phx.gbl...
>
> (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
| |
| Captain Flack 2004-05-30, 11:53 am |
| GitarJake wrote:
> 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
--
captain_flackTONYBLAIRFROMOFFICE@hotmail
.com
(remove Tony Blair from office to contact me)
|
|
|
|
|