PDA

View Full Version : [Resolved] Ext and datejs library not compatible



ryanewing
17 Aug 2009, 1:53 PM
I am using datejs in a project (http://www.datejs.com/) and am experiencing an error that is described here: (http://groups.google.com/group/datejs/browse_thread/thread/b343b2eb7372405c).

I have a datefield (so a datepicker as well). When I try to choose a day, it fills the datefield with the correct day number, but one month ahead of the month that was selected in the datepicker. When I go to choose another date, the default month that comes up is now one month ahead of the last time the datepicker was opened. Also, the shortcuts that apply to datepicker (ctrl + left arrow to change day, pageup to change month) do not work. When I comment out datejs from the html, the datepicker works fine.

I tried the solution in the thread linked above (including the override file) but I get the following error:

this.id.indexOf is not a function
anonymous()ext-all.js (line 7)
anonymous(Object applyTo=td.x-date-middle id=td.x-date-middle)ext-all.js (line 7)
anonymous(Object applyTo=td.x-date-middle id=td.x-date-middle)ext-all.js (line 7)
anonymous()ext-base.js (line 7)
anonymous()ext-base.js (line 7)
anonymous(Object dom=div#form-ct id=form-ct defaultUnit=px, Object name=position)ext_date...rrides.js (line 183)
anonymous("form-ct", Object name=a)ext-all.js (line 7)
anonymous()testsuit..._query.js (line 251)
anonymous()ext-all.js (line 7)
anonymous()ext-base.js (line 7)


chrome://firebug/content/blank.gifExt.DomHelper=function(){var s=null,j=/^...b.stopEvent();this.completeEdit()}}}});\n


Any help would be very much appreciated!

ryanewing
17 Aug 2009, 4:08 PM
never mind, i figured it out. if anyone else has the same problem, check here: http://coreygilmore.com/projects/ext-js-datejs-integration/

wemerson.januario
13 Dec 2011, 4:07 AM
How about overrides for Ext.3.++?