Entering no date
2005/03/08 14:51
Viewed 12669 times
Replies: 3/6

How can we use jscalendar when we have a "not required" date input field.

Opening the calendar and closing wil not create an input in the field but what can we do if we want to change from "existing date" to "no date" up to now you have to use the keyboard to eleminate the date string.
Is there another way to clean the input ?
Have we overseen something in the docu :-(

Using the keyboard is not really what we want. As setting the focus via mouse will again popup a calendar.

A additional button for "no date" would be cool !

thanks

Gero

BTW: I'm planning to integrate jscalendar as a optional input method for dates into TUTOS http://www.tutos.org

Re: Entering no date
2005/03/09 07:56
Viewed 15497 times
Replies: 1/2

The current version doesn't have such an option; we'll add this feature in the next version, as an optional parameter.

last
Re[2]: Entering no date
2005/03/15 10:38
Viewed 17723 times
Replies: 1/1
by mika

This feature is a necessity for us too. It is a very needed feature for business applications. Any idea when the new version will be available? Any comments on how you will implement this feature?

last
Add a date clearing button beside calendar
2005/03/21 06:49
Viewed 14796 times
Replies: 1/1

Add the following to your form:

<input type=button value="Clear Date" onClick="document.forms.fieldname.value=''"></div>

Several things should be pointed out for those less familiar to javascript:
1) Your form obviously has to be named; in the above case the form would have a name value of "forms" (<form method="POST" name="forms" action="postpage.htm">)
2) "fieldname" is the name of your date input field
3) the value should look like this, but without any spaces: onClick="document.forms.fieldname.value=' ' ">
- So the value following the equal sign is two single-quotes followed by a double-quote -- no spaces between any of them. I wrote it out this way, because it's difficult to tell the difference between single and double quotes on this forum.

Now you should be able to make your input field read-only, while still giving the user to clear the date out entirely by passing an empty value via the about onclick command. It's a stop-gap approach, at least until the dev team adds it directly to the calendar. ;-)

last
Badly written last two sentences
2005/03/21 06:55
Viewed 17152 times
Replies: 0/0

The last two sentences should read:

Now you should be able to make your input field read-only (if so desired to enforce formatting), while still giving the user the ability to clear the date field entirely by passing an empty value via the button's onclick command. It's a stop-gap approach, at least until the dev team adds a similar button directly to the calendar. ;-)

last
Re: Entering no date
2008/05/07 09:34
Viewed 2098 times
Replies: 0/0

Are there any news regarding this problem? Having a "no date" button would be great! Reasons for that are already mentioned in this thread..
Thanks a lot!

last
Google