[CLOSED] DatePicker and AjaxControlToolkit
Hello,
Was wondering if there was any resolution to the JavaScript error generated when using the AjaxControlToolkit and the Ext JS DatePicker on the same form?
Error:
Code:
span.getTotalMilliseconds is not a function
http://localhost/ScriptResource.axd?d=3w3a_SAQmS1uxac2mFuXNv42qGCxnU_B-6oAeibCDs4tph4A5CmcJALQNPZJqHBc2rGornuRSRIRHsIEmYXBUg2&t=633673529779413340
Line 138
Line 138:
Code:
Date.prototype.add = function Date$add(span) {return new Date(this.getTime() + span.getTotalMilliseconds());}
Cheers,
Timothy
RE: [CLOSED] DatePicker and AjaxControlToolkit
hmm... ExtJS does not modify nor use the .getTotalMilliseconds() function. I'll have to create a sample and debug further.
RE: [CLOSED] DatePicker and AjaxControlToolkit
I was able to reproduce the problem. Just stepping through the code now.
RE: [CLOSED] DatePicker and AjaxControlToolkit
Thanks! Let me know if you need me to test anything.
Cheers
RE: [CLOSED] DatePicker and AjaxControlToolkit
Hi Timothy,
The problem is caused by a nasty flaw of both the micorosft and extjs libraries. I've added a work-around that solved the problem when using the <ext:DatePicker>
in conjunction with the AjaxControlToolkit.
The fix has been committed to SVN.
RE: [CLOSED] DatePicker and AjaxControlToolkit
Thanks Geoffrey, this has been confirmed.
Cheers,
Timothy