Javascript error in every page on IE 10 Javascript error in every page on IE 10 asp.net asp.net

Javascript error in every page on IE 10


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.


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;}