473,387 Members | 1,536 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.

time selector

Hi all:

There are many javascript date selector available which help you input
date in a text field. And we see a lot of this on travel site when you
select date for air ticket. Could anyone point me a time selector? I am
looking for something that can input time as 12:00:00 AM.

Thanks,

qq

Jan 17 '06 #1
10 3662
<qu******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi all:

There are many javascript date selector available which help you input
date in a text field. And we see a lot of this on travel site when you
select date for air ticket. Could anyone point me a time selector? I am
looking for something that can input time as 12:00:00 AM.

Thanks,

qq


http://www.aspfaq.com/5003

Also, Google is your friend.
Jan 17 '06 #2
I want a time selector, something similiar to the Date selector we see
a lot when booking air tickets.

Thanks,

qq

Jan 17 '06 #3
qu******@yahoo.com wrote:
Could anyone point me a time selector?


When people request this, I've always wondered why?

Why do you want a selector for time? Why not just drop-down boxes, at the
very most?
A date picker makes sense because a calendar is visual and makes it easier
to recognize and select appropriate dates.

Any visual representation of a time selector that I can imagine always turns
out to be more cumbersome than a plain text field.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Jan 17 '06 #4
qu******@yahoo.com said the following on 1/17/2006 12:49 PM:
Hi all:

There are many javascript date selector available which help you input
date in a text field. And we see a lot of this on travel site when you
select date for air ticket. Could anyone point me a time selector? I am
looking for something that can input time as 12:00:00 AM.


<input type="text" name="timeHours">:
<input type="text" name="timeMinutes">:
<input type="text" name="timeSeconds">:
<input type="text" name="ampm">

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 17 '06 #5
It is more cumbersome to ask user to input time in the format of
12:00:00

Jan 17 '06 #6
qu******@yahoo.com said the following on 1/17/2006 4:32 PM:

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
It is more cumbersome to ask user to input time in the format of
12:00:00


If your users are too stupid to type in the time, you don't need a time
selector, you need to spend that time educating your users.

Contrary to your beliefs, most people *do* know how to correctly enter time.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 17 '06 #7
Most people do not know what IS the correct time format

Jan 17 '06 #8
qu******@yahoo.com said the following on 1/17/2006 5:25 PM:
Most people do not know what IS the correct time format


Just as you do not know how to quote?

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

Please enter the time in the following format: HH:MM:SS
HH is hours in 2 digit format, add a leading zero for numbers less than 10.
MM is minutes in 2 digit format, add a leading zero for numbers less
than 10.
SS is seconds in 2 digit format, add a leading zero for numbers less
than 10.

If your users can't follow those simple directions then how do you
expect them to properly choose from a "time selector"?

If all that fails, give them select elements.

Hours:<select name="hours">
<option value=01">01
<option value=02">02
<option value=03">03
<option value=04">04
<option value=05">05
<option value=06">06
<option value=07">07
<option value=08">08
<option value=09">09
<option value=10">10
<option value=11">11
<option value=12">12

And so on for minutes and seconds.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 17 '06 #9
JRS: In article <11**********************@g44g2000cwa.googlegroups .com>
, dated Tue, 17 Jan 2006 14:25:29 remote, seen in
news:comp.lang.javascript, qu******@yahoo.com <qu******@yahoo.com>
posted :
Most people do not know what IS the correct time format


Most Americans do not know what is the correct time format (they think
it's like the example you gave). But most people do know the correct
time format.

Your mistake lies not in considering Americans as people (it's a tenable
hypothesis), but in considering non-Americans as non-people.
If there are only a few distinct times available, use RadioButtons.
If there are only a limited number of distinct times available, use a
<SELECT>.

If many or all times are allowed, use <input type=text> and validate;
give an example time, in the afternoon..

Read the newsgroup FAQ; see below.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jan 18 '06 #10
Dr John Stockton said the following on 1/18/2006 11:22 AM:
JRS: In article <11**********************@g44g2000cwa.googlegroups .com>
, dated Tue, 17 Jan 2006 14:25:29 remote, seen in
news:comp.lang.javascript, qu******@yahoo.com <qu******@yahoo.com>
posted :
Most people do not know what IS the correct time format


Most Americans do not know what is the correct time format (they think
it's like the example you gave).


Yet more of your blatant ignorance about Americans? Your ignorance when
it comes to that knows no bounds.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 18 '06 #11

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

Similar topics

6
by: Richard Barnet | last post by:
Dear CSS gurus, My question regarding 'the cascade' is a simple one, but one that I haven't heard anyone talk about before: When cascading (for instance, when applying two linked stylesheets),...
4
by: Zane | last post by:
Hi, I am having some grieve with the following part of my CSS, basically when using a composite selector using an ID as the first element the it doesn't display the expected results. Am I doing...
3
by: Lian Liming | last post by:
Hi, The language in my web site may be Simplified Chinese or English. I want to define different styles for each language. For each language, the http header is different. <meta name="language"...
12
by: quickcur | last post by:
Hi all: There are many javascript date selector available which help you input date in a text field. And we see a lot of this on travel site when you select date for air ticket. Could anyone...
2
by: Chris Sharman | last post by:
See http://services.ccagroup.co.uk/testform.htm Looks as intended in firefox, is valid (bulk of inputs centred in a div occupying the left half of the page). ie ignores the child selector,...
4
by: fredindy | last post by:
I have code that works on every from I have created except for the latest. Here it is: Private Sub cmdGo_Click() Dim sSQL As String Dim selector As String Dim sText As String sSQL =...
8
by: sajid | last post by:
The CSS 2.1 Specification describes how to sort a list of selectors in order of specificity, but it doesn't provide a method to calculate the specificity of a single selector in isolation. I've...
3
by: JakDaniel | last post by:
is it possible, create a selector as alias of another selector... (maybe) in another stylesheet file? ex: html page .... <link rel="stylesheet" type="text/css" href="style1.css" /> <link...
6
by: _googlepost | last post by:
I have some CSS that goes something like this: table.TableStyle {font-family: "Helvetica", "Ariel"; background- color:white; border-collapse:collapse;} table.TableStyle COLGROUP { background-...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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.