Re[8]: Pre-selected date
2008/09/04 22:13
Viewed 7533 times
Replies: 0/0

Hello, all:

Even though I really do not expect anyone to help me or respond to this post, I would greatly appreciate it if anyone does. I have two questions:

1. How do we post a new thread on this forum? I cannot seem to find a way to do it here, that's why I am just replying to my own post.
2. I want the user to select only time (but entire date in hidden input field) from the calendar, with the calendar displaying the correct date and disabling all other dates. I was able to disable all other dates and using 'displayArea' and 'daFormat' parameters, I was able to display the time as HH:mm within <span> tag. But the problem is: I have to insert some text like '00:00' within <span> tag for 'displayArea' thing to work. That's fine so far. But as soon as the user submits the form and the server redisplays the page again for the user to continue working on the form, '00:00' re-appears within <span> tag and the previously entered time disappears from the page. That is bad! How do I maintain the previously entered time on page refresh?

I tried to solve the problem # 2 by using <body onload="somefunction"> and updating the text within <span> tag from this somefunction. But it has no affect. Then I tried the ifFormat as "HH:mm" but when the calendar appears first time, the entire date is displayed in "MM/dd/yyyy HH:mm' format. It changes to 'HH:mm' only when user selects some time - the downside is that I get only the time part in form parameter, not entire date that I want.

Can anyone be real kind enough to respond to this post? Thanks.

Google