I'm getting an error when I load my page. Once the page is loaded, a call to a PageMethod is made. Most of the time the page will load with no problems. Sometimes it will get an error saying the following:
Message: Object expected
Line: 4780
Char: 9
Code: 0
URI: https://xxxxxxxx/ScriptResource.axd?d=0dqQSYSO3wvv7LqVs9lYcIeqZ8clhEiXPQumqvZoSOHXbpIOGH-nEl-7tg94jnbkcYOZ6h9hDzgrDqY8YwitxjBopIIsevAiTLxUzgsgHJc1&t=8d08ead
Inside the ScriptResource.axd file, line 4780 contains this: this._xmlHttpRequest = new XMLHttpRequest();
I tried to delay the PageMethod call by placing a SetTimeout, but the error continues to occur.
Here is the javascript that call the PageMethod:
function DisplayProduct_OnSucceed(result) {
alert('inside display');
try {
var t = document.getElementById('divProducts').getElementsByTagName('TBODY')[0];
var header = t.rows[0].cells[0].getElementsByTagName('DIV')[0 ...
Go to the complete details ...