View Full Version : Use yui to input the time.
rahulmca1@gmail.com
15 Jan 2007, 10:13 PM
Hi,
Is there any control in yui for time input. I could not found any.
Though not in yui I found Javascript code to allow user to input time at
http://www.javascriptkit.com/script/script2/tengcalendar.shtml
Using it we can enter date, time , both date and time.
Do we have similar control in YUI.
Thanks
Waiting For your response.
BernardChhun
16 Jan 2007, 5:32 AM
YUI has one : http://developer.yahoo.com/yui/calendar/ but you will have to make your own time control. Which isn't too hard right?
I haven't seen anything similar to what you are asking in YUI-EXT.
Animal
16 Jan 2007, 5:43 AM
YUI has one : http://developer.yahoo.com/yui/calendar/ but you will have to make your own time control. Which isn't too hard right?
I haven't seen anything similar to what you are asking in YUI-EXT.
It's quite a bit of work when you get down to it.
We've implemented an editable dropdown. Of course that's a text input field with a downarrow button next to it which pops up a div which contains times which when clicked on are put into the field. The granularity can be specified, so it can contain times every 15 minutes, or just the hours. The user is then able to edit the field to make fine adjustments.
This is part of an integrated datetime input widget which stores the validated product of both fields in a single hidden input field in ISO format. The hidden input field gets the name the JSP author gave to the tag, the visible input fields get generated names, and are ignored when the page is submitted.
BernardChhun
16 Jan 2007, 5:51 AM
YUI has one : http://developer.yahoo.com/yui/calendar/ but you will have to make your own time control. Which isn't too hard right?
I haven't seen anything similar to what you are asking in YUI-EXT.
It's quite a bit of work when you get down to it.
We've implemented an editable dropdown. Of course that's a text input field with a downarrow button next to it which pops up a div which contains times which when clicked on are put into the field. The granularity can be specified, so it can contain times every 15 minutes, or just the hours. The user is then able to edit the field to make fine adjustments.
This is part of an integrated datetime input widget which stores the validated product of both fields in a single hidden input field in ISO format. The hidden input field gets the name the JSP author gave to the tag, the visible input fields get generated names, and are ignored when the page is submitted.
waahh impressive Animal! Indeed it looks like a bit of work but you know... I was being sarcastic when I said it wasn't too hard. :wink: anyways, good luck on making the time control rahulmca1@gmail.com
rahulmca1@gmail.com
16 Jan 2007, 9:16 PM
Hi,
Thanks for such comments.
I will look for time control and post the solution I will find in future
Thanks
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.