Javascript error in every page on IE 10
I had a similar issue; resolved after following the solution posted here by nileshsaikhede http://forums.asp.net/t/1884400.aspx/1
All I had to do was add
<meta http-equiv="X-UA-Compatible" content="IE=7" />
to my master page.
Just to add to mafu josh's answer, the bound prototype can also be the issue.
Here's the code for that
Sys.UI.Bounds = function Sys$UI$Bounds(x, y, width, height) {
x = Math.round(x);
y = Math.round(y);
var e = Function._validateParams(arguments, [
{ name: "x", type: Number, integer: true },
{ name: "y", type: Number, integer: true },
{ name: "width", type: Number, integer: true },
{ name: "height", type: Number, integer: true }
]);
if (e) throw e;
this.x = x;
this.y = y;
this.height = height;
this.width = width;
}
I found a nice solution blogged by Yuriy:
<script language="javascript">
Sys.UI.Point = function Sys$UI$Point(x, y) {
x = Math.round(x);
y = Math.round(y);
var e = Function._validateParams(arguments, [
{name: "x", type: Number, integer: true},
{name: "y", type: Number, integer: true}
]);
if (e) throw e;
this.x = x;
this.y = y;
}
</script>
Paste this on your page to override the Sys$UI$Point function to round the numbers.
Or, set <compilation debug="false">
Either of these worked for me.
The answer is in the following link:
http://support.microsoft.com/kb/936993
I had to change Microsoft.Ajax.js.