473,594 Members | 2,976 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3674
<qu******@yahoo .com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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="timeMinut es">:
<input type="text" name="timeSecon ds">:
<input type="text" name="ampm">

--
Randy
comp.lang.javas cript 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.c om, 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.javas cript 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.c om, 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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 17 '06 #9
JRS: In article <11************ **********@g44g 2000cwa.googleg roups.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.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jan 18 '06 #10

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

Similar topics

6
2319
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), does the whole selector definition supercede and replace a previous one, or does it go through the selector definition line by line (rule by rule) and only supercede rules and attributes that are previously defined?
4
2779
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 something incorrect? For example my CSS goes something like this: #leftnavbar a:link { color: #333; text-decoration: none; }
3
6609
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" content="en" /> means the language is english <meta name="language" content="zh" /> means the language is Simplified Chinese. Then I use a css selector to define different style for each language. My css code is
12
20599
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 point me a time selector? I am looking for something that can input time as 12:00:00 AM. Thanks, qq
2
2138
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, positioning everything aligned left. I'm familiar with http://w3development.de/css/hide_css_from_browsers/ I thought the ie child selector bug only occurred where there were no spaces (parent>child) - I'd thought it worked when there were (parent >
4
18953
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 = "SELECT qryFindRental., qryFindRental.,
8
2322
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 devised a method to do this, which I describe in the following article: http://calculating-css-selector-specificity.blogspot.com/ Comments and/or criticisms welcome.
3
1928
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 rel="stylesheet" type="text/css" href="style2.css" /> ....
6
7189
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- color:lavender;} The second line is a style that is applied to a particular named COLGROUP element in tables assigned the TableStyle class. Unfortunately, while this works in most modern browsers (including
0
7947
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8010
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8242
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6665
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5413
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1486
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.