Click to See Complete Forum and Search --> : Help for Date Range Selection


Will192
02-19-2003, 09:41 AM
I am working on a page that shows the Audit records. I want the user to be able to only select a date range. I am sure that someone else has a good example of this. I would like for them to not have to do any typing. Maybe something like two sliders for the date range or something like that.

Any respone to this post is greatly appreciated. Thanks in advance.

Will192

pyro
02-19-2003, 12:49 PM
Would you please clarify what you are looking for? Are you talking about two drop down menus?

Will192
02-19-2003, 02:20 PM
I need some help on creating a control that would allow a user to enter a date, without typing preferably.

I am going to need them to enter two dates, so two controls. If I could combine it into one control, then that would be great.

I have done this before, but with two textboxes. The problem with that is that I then have to parse the dates and do validity checks.

If it was going to be some kind of monthly calendar control, then it would have to be small.

What other kind of detail do you need?

Thanks for your quick reply.

Will192

pyro
02-19-2003, 02:29 PM
Is something like this what you are looking for?

Will192
02-19-2003, 02:43 PM
That is along the lines of what I had originally thought of.

I was needing it for a two year range of dates. If I had a drop-down list of 712 dates, it would be too much to select from.

I guess that I could just setup seperate dropdown boxes for the month, day & year for both sides of the date range.

I was just hoping that someone had a code example of some kind of fancy date control.

Thanks for the reply.

Will192

jalarie
02-19-2003, 03:22 PM
Take a look at the "Needed by" field and associated links near the bottom of the "Samples of my work > Order form" page at my site. If any of this is of interest to you, please e-mail me directly at jalarie@umich.edu for the source-code. My site address is:

http://spruce.flint.umich.edu/~jalarie/

khalidali63
02-19-2003, 05:40 PM
Check this link out.
http://68.145.35.86/skills/javascripts/DateRangeSelector.html

cheers

Khalid

jalarie
02-20-2003, 07:04 AM
To khalidali63:
Windows 2000, Netscape 4.8:
JavaScript Error:
http://68.145.35.86/skills/javascripts/scripts/date-range-gui.js,
line 96:

can't convert tempArr[0] to an integer.

khalidali63
02-20-2003, 08:28 AM
Never had the eintention that it would work with <NS6 browsers,I'll take a look though..
:-)

cheers

Khalid

Thanks for pointing it out..Its fixed.