Last post Mar 07, 2017 03:38 PM by JAYHAWKER
Mar 06, 2017 05:14 PM|JAYHAWKER|LINK
All of the sudden, If I select a date from the calendar when using the extender, I don't get an error. But if I type the date in, no matter what format I use, I get the error
I have been doing some search and replace in the solution, so thought maybe I changed the name of a function or something. So I uninstalled the ajaxtoolkit, and re-installed it. It didn't change anything. What am I doing wrong?
Mar 06, 2017 06:36 PM|mgebhard|LINK
You are probably trying access the parseLocale() method on a string and not an actual date type.
Mar 06, 2017 10:51 PM|JAYHAWKER|LINK
I don't have any script running, just putting text in a textbox that has the calendar extender applied in the form of a date, then hitting tab key to go to the next textbox. Then I get the error. It probably is in the form of a string, but I have never
had a problem with it before.
Mar 07, 2017 03:09 AM|JiyaoLee|LINK
From your description, when you type date in, the error will occur.
In the calendar.debug.js, I add a breakPoint the "parseLocale" method,
When I type date in the textbox, I will call "Date.parseLocale()" method
The below image shows the debugging process.
The Date.parseLocale() method is been defined in /Scripts/MSAjax/MicrosoftAjax.js and /Scripts/MSAjax/MicrosoftAjaxGlobalization.js
So try to update the two JS.
Hope this will help.
Mar 07, 2017 03:38 PM|JAYHAWKER|LINK
Thanks for your help! I found the problem. I had done a search and replace, replacing "Local" with "General". Unfortunately, it changed the Date.parseLocale to Date.parseGenerale. So searching and replacing to repair them fixed the problem.
Thanks again for your efforts.