473,394 Members | 1,658 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,394 software developers and data experts.

length of time

hi everyone

i need some creative input. i'm trying to enable the user to input a
length of time, from one day to about 10 years. ideas i've had have
been:
- 3 pull down boxes, for days, months, years
-an entry box for a value and a pull down box for units (days, weeks,
months, years)
- a scroll bar to slide along to a corresponding time

I'm not sure i should even use javascript, maybe an applet instead. I'd
really appreciated some new ideas or brainstorming.

cheers
dave

Jul 23 '05 #1
7 1602
<ma**********@hotmail.com> wrote in message
news:10**********************@k17g2000odb.googlegr oups.com...
hi everyone

i need some creative input. i'm trying to enable the user to input a
length of time, from one day to about 10 years. ideas i've had have
been:
- 3 pull down boxes, for days, months, years
-an entry box for a value and a pull down box for units (days, weeks,
months, years)
- a scroll bar to slide along to a corresponding time

I'm not sure i should even use javascript, maybe an applet instead. I'd
really appreciated some new ideas or brainstorming.

cheers
dave


How will it be used?

Would a calendar control be applicable?
Jul 23 '05 #2
just to indicate how long in time a project will take. a calendar can
only really do dates.

cheers
dave

Jul 23 '05 #3
wrote on 30 sep 2004 in comp.lang.javascript:
i need some creative input. i'm trying to enable the user to input a
length of time, from one day to about 10 years. ideas i've had have
been:
- 3 pull down boxes, for days, months, years
-an entry box for a value and a pull down box for units (days, weeks,
months, years)
- a scroll bar to slide along to a corresponding time


It realy depends on your audience.
[corporate, academics, general public, sf-writers, etc?]

For myself, I hate using those long pull-downs.
I would use a parsable string, giving the user a choice:

"3y2m23d"
"3.4y"
"23m2d"
"3y60d"

and I would parse them serverside,
perhaps after 'some' clientside validation.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #4
On 30/9/04 6:00 am, ma**********@hotmail.com wrote:
just to indicate how long in time a project will take. a calendar can
only really do dates.

cheers
dave


If you mean the *estimated* duration, then I assume you don't need time
durations of several years to be stated to the nearest day.

So why not have a single numeric input with a choice of 4 radio buttons (or
a pull-down menu) for "Days", "Weeks", "Months" or "Years"?

(That'll be 2¢ please)

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #5
lol yeah cheers thanks for that, i think that's what i'll do. It's not
that big an issue, i'm just at that stage of the website where little
difficulties like that start to rear their ugly head.

cheers
dave

Jul 23 '05 #6
JRS: In article <10**********************@k17g2000odb.googlegroups .com>
, dated Wed, 29 Sep 2004 20:40:25, seen in news:comp.lang.javascript,
ma**********@hotmail.com posted :

i need some creative input. i'm trying to enable the user to input a
length of time, from one day to about 10 years. ideas i've had have
been:
- 3 pull down boxes, for days, months, years
-an entry box for a value and a pull down box for units (days, weeks,
months, years)
- a scroll bar to slide along to a corresponding time

That depends on the accuracy required, on the type of person entering
the data, and on the conventions of the field.

For a data-entry clerk entering such data frequently, use space-
separated numbers for Y M D; if not all possible sub-fields may be
present, use suffix letters as in 152w or 3y.

For a Boss, stating policy infrequently, you could well use something
slower, to make time to think. If the lengths of time are drawn from a
conventional set such as 1d 2d 3d 1w 2w 1m 2m 3m 6m 1y 2y 5y 10y, then a
slider indexing an array of values might serve.

Pull-down boxes are slow; and there is the question of the number of
days in a month.

If best accuracy of duration is needed, you can use only days and weeks;
years are almost as good.

--
© 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.
Jul 23 '05 #7
Fox
ma**********@hotmail.com wrote:
hi everyone

i need some creative input. i'm trying to enable the user to input a
length of time, from one day to about 10 years. ideas i've had have
been:
- 3 pull down boxes, for days, months, years
-an entry box for a value and a pull down box for units (days, weeks,
months, years)
- a scroll bar to slide along to a corresponding time

I'm not sure i should even use javascript, maybe an applet instead. I'd
really appreciated some new ideas or brainstorming.

cheers
dave

http://site-creations.com/demo/timeinput.htm

Jul 23 '05 #8

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

Similar topics

1
by: torbs | last post by:
I have a problem when I use javascript to get the length and position of a movie I recieve from a rtsp stream. The length and position is extremely high and not the actual length and position of...
3
by: Carmelo | last post by:
Hi there, I'm a newbie on C# and I was trying just to open a file, read it byte-a-byte and close controlling the length of this operation. Doing that with a 500Kb file I get a duration of about...
1
by: Samuel R. Neff | last post by:
Are there any differences between using Array.Length and Array.GetUpperBound(0) on a one-dimensional array? We have a team of developers and most people use Array.Length but one developer uses...
1
by: Nuno Magalhaes | last post by:
I'm doing a "low level" project that consists on monitoring certain QoS parameters such as: Time to resolve dns, time to connect, time to receive data, time to receive all web page, time to close...
5
by: Tiger | last post by:
Hi, I try to send a packet with raw socket but I have an error with ethereal sniffer on windows xp. I can't find any solution on the net. :( Could anybody help with that problem? my code :...
22
by: semedao | last post by:
Hi , I am using asyc sockets p2p connection between 2 clients. when I debug step by step the both sides , i'ts work ok. when I run it , in somepoint (same location in the code) when I want to...
16
by: John | last post by:
Does the length of my C variable names have any affect, performance-wise, on my final executable program? I mean, once compiled, etc., is there any difference between these two: number = 3; n =...
14
by: Richard Maher | last post by:
Hi, Can anyone please show me a regular expression (or function or other) for padding out a string to a fixed number of bytes? At the moment I've got a var initialized to N spaces, where 'N'...
2
jlm699
by: jlm699 | last post by:
This is a simple one guys... I just want the last field of a status bar to adjust based on the length of the text contained within. I was using the example from the wxPython status bar demo where...
6
by: Neil | last post by:
I had a strange situation with a view in SQL 7, that I could use some input on. I had a very simple view -- select a, b, c from table1 where x=y and z=q. Field a in table1 originally was varchar...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...

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.