1. #1
    Ext User
    Join Date
    May 2007
    Posts
    5
    Vote Rating
    0
    Zuni is on a distinguished road

      0  

    Default jQuery implementation bugs with calendar (dateMenu)

    jQuery implementation bugs with calendar (dateMenu)


    There is a bug in Ext running over jQuery. Since Im certainly not sure if it's got to do with Ext's jQuery adapter, or jQuery itself, I'm posting it both here and at the jQuery discussion list.

    The calendar implementation of Ext (See here http://www.extjs.com/deploy/ext/exam...enu/menus.html, open first menu, choose date) is not working properly with jQuery, but is with YUI and Prototype. Changing the calendar months from the little arrows (left and right, next to the month name) stop working after you've clicked them once. Both buttons work only once, and with a quick glance this would indicate a problem concerning Ext.util.ClickRepeater or Ext.util.Observable, but it's more of a guess than anything.

    There's also a minor bug in Ext which causes the page to jump to the top (the script doesn't correctly prevent the default click handler) with FF. A kind of dirty hack to prevent this is by binding a click handler for the arrows manually and making it preventDefault and stopEvent for the event. This is not jQuery specific, tho, AFAIK. There was a posting about a possible fix for this issue at http://extjs.com/forum/showthread.php?t=5556 but the changes therein were not enough to fix the issue (since the click event still fired pretty much in succession with the mousedown-event that is handled by the ClickRepeater, causing the default action still to fire even if mousedown event handler tried to stop it).

    Please do correct if I've missed something.

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    24
    Vote Rating
    0
    mdelmarter is on a distinguished road

      0  

    Default


    Quote Originally Posted by Zuni View Post
    The calendar implementation of Ext (See here http://www.extjs.com/deploy/ext/exam...enu/menus.html, open first menu, choose date) is not working properly with jQuery, but is with YUI and Prototype. Changing the calendar months from the little arrows (left and right, next to the month name) stop working after you've clicked them once. Both buttons work only once, and with a quick glance this would indicate a problem concerning Ext.util.ClickRepeater or Ext.util.Observable, but it's more of a guess than anything.
    Here is an explanation of the problem - the solution is in the pipeline:
    http://groups.google.com/group/jquer...35a8ba195d0a37

Thread Participants: 1