In build 15.1.4.0 ModalPopupExtender is causing an error in IE
Unhandled exception at line 1241, column 5 in http://localhost:81/ScriptResource.axd?....
0x800a1391 - JavaScript runtime error: 'console' is undefined
Code is:
Sys.Extended.Deprecated = function (oldMethodName, properMethodName) {
if (isUnminified && console && console.warn)
if(arguments.length == 1)
console.warn(oldMethodName + " is deprecated.");
else
console.warn(oldMethodName + " is deprecated. Use " + properMethodName + " instead.");
}
oldMethodName = set_OnOkScript(value)
properMethodName = set_onOkScript(value)
Comments: Apparently this is common problem with IE. The solution was to add this javascript which then force console to be defined: (function () { var method; var noop = function () { }; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn' ]; var length = methods.length; var console = (window.console = window.console || {}); while (length--) { method = methods[length]; // Only stub undefined methods. if (!console[method]) { console[method] = noop; } } }());
Unhandled exception at line 1241, column 5 in http://localhost:81/ScriptResource.axd?....
0x800a1391 - JavaScript runtime error: 'console' is undefined
Code is:
Sys.Extended.Deprecated = function (oldMethodName, properMethodName) {
if (isUnminified && console && console.warn)
if(arguments.length == 1)
console.warn(oldMethodName + " is deprecated.");
else
console.warn(oldMethodName + " is deprecated. Use " + properMethodName + " instead.");
}
oldMethodName = set_OnOkScript(value)
properMethodName = set_onOkScript(value)
Comments: Apparently this is common problem with IE. The solution was to add this javascript which then force console to be defined: (function () { var method; var noop = function () { }; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn' ]; var length = methods.length; var console = (window.console = window.console || {}); while (length--) { method = methods[length]; // Only stub undefined methods. if (!console[method]) { console[method] = noop; } } }());