using the ajax calendar controlextender, I get the error x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'parseLocale' when I enter a date into the textbox. What happened?[Answered]RSS
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
x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'parseLocale' in the file calendar.debug.js
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?
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.
Hi JAYHAWKER,
From your description, when you type date in, the error will occur.
JAYHAWKER
x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'parseLocale' in the file calendar.debug.js
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.
Best regards,
JiyaoLee
We are trying to better understand customer views on social support experience. Click HERE to participate the survey. Thanks!
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.
Participant
1245 Points
2687 Posts
using the ajax calendar controlextender, I get the error x800a01b6 - JavaScript runtime error: Ob...
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
x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'parseLocale' in the file calendar.debug.js
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?
All-Star
52241 Points
23304 Posts
Re: using the ajax calendar controlextender, I get the error x800a01b6 - JavaScript runtime error...
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.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
Participant
1245 Points
2687 Posts
Re: using the ajax calendar controlextender, I get the error x800a01b6 - JavaScript runtime error...
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.
Member
600 Points
262 Posts
Re: using the ajax calendar controlextender, I get the error x800a01b6 - JavaScript runtime error...
Mar 07, 2017 03:09 AM|JiyaoLee|LINK
Hi JAYHAWKER,
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.
Best regards,
JiyaoLee
Participant
1245 Points
2687 Posts
Re: using the ajax calendar controlextender, I get the error x800a01b6 - JavaScript runtime error...
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.