error in AJAX page

M

ma

Hello,

I have a page that has some updatepanel in it. It was working properly
till very recently but today I noticed that it is not working properly and
when the page is loaded, it reported "done but with error on page". Trying
to find the source of error, I come to this message:

"sys is not defined."

Looking at the page source, I found that it relates to the following lines:



Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1',
document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [],
90);



And



Sys.Application.initialize();



What is the problem and how can I solve it?



Best regards
 
B

bruce barker

if you look at the page source (view source), you will see some:

<script src="scriptresource..."></script>

lines. they are probably not loading properly because one of them
defines Sys.

if the <script> lines are not there, then ScripManager is not defined.

-- bruce (sqlwork.com)
 
G

gerry

we run into this occasionally even though all of the <script> tags etc are
there, reloading the page usually fixes the problem
my guess is that the script that defines sys is taking too long to load and
another script that references it is executes before it is defined - or
maybe not


bruce barker said:
if you look at the page source (view source), you will see some:

<script src="scriptresource..."></script>

lines. they are probably not loading properly because one of them defines
Sys.

if the <script> lines are not there, then ScripManager is not defined.

-- bruce (sqlwork.com)




Hello,

I have a page that has some updatepanel in it. It was working properly
till very recently but today I noticed that it is not working properly
and when the page is loaded, it reported "done but with error on page".
Trying to find the source of error, I come to this message:

"sys is not defined."

Looking at the page source, I found that it relates to the following
lines:



Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1',
document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [],
90);



And



Sys.Application.initialize();



What is the problem and how can I solve it?



Best regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top