jQuery UI Date Picker control issue with .Net

Jun 10, 2010 Posted by Lara Kannan
I build .net applications that require date entry, so I implement the Date Picker control often. Unfortunately, there is a problem when it is used on a field that is validated using a .Net validation control.

Upon clicking on a date, I get the following error:
length is null or not an object
This only occurs when using Internet Explorer. Currently, my only solution is to edit the source code.

Locate the following code in jquery-ui.js or ui.datepicker.js:
inst.input.trigger('change')

Replace it with:
if (!$.browser.msie){inst.input.trigger('change')}

This prevents the change event firing in IE.


Thanks : AndrewRowland
Share
Labels: ,

Post a Comment