ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Error running demo - entering alpha in numeric text box
Title:
B
I
{code}
?
Hi I am evaluating your product with a view to purchase. On a Windows 7 pc with IE10 I get the following message when I enter non-numeric data in the numeric text box demo Unhandled exception at line 23, column 17 in http://localhost:52615/Scripts/Site.js?v=1 0x800a1391 - JavaScript runtime error: 'console' is undefined Thanks Mike Moncrieff
Save Changes
Cancel
Ratladi
asked at 10 Feb 2014
Answers
B
I
{code}
?
console.log on IE doesn't work unless you have console open (F12), solution is to remove that console.log line from Site.js so it should look like this: //fix for IE to trigger change event on enter var isMSIE = /*@cc_on!@*/0; if (isMSIE) { $(document).on("change","input[type=text]", function (e) { $.data(this, "value", this.value); }).on("keyup","input[type=text]", function (e) { if (e.which === 13 && this.value != $.data(this, "value")) { $(this).change(); } }); }
Save Changes
Cancel
Omu
answered at 10 Feb 2014
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK