473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Javascript Time

I am using .aspx pages and currently making a trip to the server to fill in
a time in a text box.

cmdTimeIn is my button and the click event is
me.txtTimeIn.text = Now.ToShortTimeString

Can someone give me an example of using JavaScript to perform this function.
Grab the current time and placing it into a text box.

Thanks

P.S. I don't know much about javasript
Nov 18 '05 #1
3 1084
Check out the JavaScript FAQ [1]
--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://developer.irt.org/

"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
I am using .aspx pages and currently making a trip to the server to fill in a time in a text box.

cmdTimeIn is my button and the click event is
me.txtTimeIn.text = Now.ToShortTimeString

Can someone give me an example of using JavaScript to perform this function. Grab the current time and placing it into a text box.

Thanks

P.S. I don't know much about javasript

Nov 18 '05 #2
Can yo please be more specific. I am not sure where to find that.

Thanks
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:e6**************@TK2MSFTNGP10.phx.gbl...
Check out the JavaScript FAQ [1]
--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://developer.irt.org/

"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
I am using .aspx pages and currently making a trip to the server to fill

in
a time in a text box.

cmdTimeIn is my button and the click event is
me.txtTimeIn.text = Now.ToShortTimeString

Can someone give me an example of using JavaScript to perform this

function.
Grab the current time and placing it into a text box.

Thanks

P.S. I don't know much about javasript


Nov 18 '05 #3
"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
Can someone give me an example of using JavaScript to perform this function. Grab the current time and placing it into a text box.


http://www.webdevelopersnotes.com/ti...avascript.php3

But remember that that will return you the time on the client PC, which may
be very different from the time on the server (i.e. different time zones),
and is not guaranteed to be accurate...
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
34
by: electrician | last post by:
Perl has it, Basic has it, Fortran has it. What is so difficult about creating a goto command for JavaScript. Just set up a label and say go to it.
9
by: Erwin Moller | last post by:
Hi, Can anybody comment on this? In comp.lang.php I advised somebody to skip using: <script language="javascript"> and use: <script type="text/javascript"> And mr. Dunlop gave this response:
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.