Oh no! Some styles failed to load. 😵 Please try reloading this page
Menu â–¾ â–´

#1 Input field not updated when switching month/year

closed-fixed
nobody
None
5
2003-06-22
2003-03-13
Ivo Jansch
No

When you open the popup (with doubleclick selection
mode), and click on the 13th of this month, the edit
field is updated with the correct value.

If you then click on the 'previous' month button, the
widget itself will select the 13th of the previous
month, but the input field is unchanged, unless I click
on the date again.

This is confusing, because if I now close the popup,
the date is still on the original month.

Discussion

  • Mihai Bazon

    Mihai Bazon - 2003-03-19

    Logged In: YES
    user_id=158787

    Perhaps I should create another handler function that will
    get called when the month/year was changed?

    I say this because if I would call the closeHandler when the
    month/year and the calendar is in "single-click" mode, then
    that function would also close the calendar which is not good.

     
  • Ivo Jansch

    Ivo Jansch - 2003-03-20

    Logged In: YES
    user_id=733558

    Yes, that would be ok for me. I could then make these
    handlers call the same function it calls when selecting a date.

    Another possibility would be to deselect the day when you
    switch a month, but that could annoy other users.

     
  • Mark Bajema

    Mark Bajema - 2003-04-17

    Logged In: YES
    user_id=756934

    This is related to another bug: if the input field is blank, the
    calendar defaults to today being selected (even though the
    input field does not equal today) or it defaults to the value of
    the last input field that the calendar was attached to. If the
    input field is blank, the calendar should show the current
    month with no date selected.

     
  • Nobody/Anonymous

    Logged In: NO

    As per the above, the text fields does not automatically pop
    up text box. You need to click and then only it will be
    selected. It is just like ok button. If automatically updates the
    field the problem is if the date is moved to some date and
    dont want to modify it is a problem

     
  • Anonymous

    Anonymous - 2003-05-23

    Logged In: YES
    user_id=625864

    I used this calendar to create a little active desktop calendar
    (which linked to a database so it could display notes for each
    day), and noticed that using the month/year selectors would
    not call the onSelected handler. I think line 555 should be
    changed from
    newdate = el.navtype == 0;
    to
    newdate = (el.navtype >= -2 && el.navtype <= 2);

    to correct this problem, so that the selected date will be
    updated and the handler will be called whenever the month or
    year is changed or a different day is clicked on.

    (fantastic component, btw)

     
  • Mihai Bazon

    Mihai Bazon - 2003-06-22
    • status: open --> closed
     
  • Mihai Bazon

    Mihai Bazon - 2003-06-22
    • status: closed --> closed-fixed
     
  • Nobody/Anonymous

    Logged In: NO

    This is a fantastic object - thanks so much for making it
    available and accepting input/feedback from your users.

    I have to disagree completely with the users who want the
    field to be updated automatically when a user changes
    months/years. This is completely non-intuitive behavior and
    in my opinion, very bad UI. When I am changing
    months/years, I am 'browsing' the calendar, not selecting a
    date. I agree that the when changing months, no date
    should be highlighted, as I haven't selected anything.

    I've only begun looking at the code and documentation, so I
    hope there's an easy way to disable this behavior.

    Wonderful job! This calendar is going to replace the one I've
    been using for the last 2 years.

     
  • Nobody/Anonymous

    Logged In: NO

    jjjj

     

Log in to post a comment.