Ajax Error?

M

Mike Collins

The following line of code gives me an error. I'm guessing it is an Ajax
related error.

this.get_element().style.display = 'block';

This is the function that the line of code is in when it breaks.

function Sys$UI$_UpdateProgress$_startRequest() {
if (this._pageRequestManager.get_isInAsyncPostBack()) {
if (this._dynamicLayout) this.get_element().style.display = 'block';
else this.get_element().style.visibility = 'visible';
}
this._timerCookie = null;
}

The error is: Microsoft JScript runtime error: this.getElement().style is
null or not an object.

I have no idea how this is happening. Can someone please help me with this
error?
 
R

Registered User

The following line of code gives me an error. I'm guessing it is an Ajax
related error.

this.get_element().style.display = 'block';

This is the function that the line of code is in when it breaks.

function Sys$UI$_UpdateProgress$_startRequest() {
if (this._pageRequestManager.get_isInAsyncPostBack()) {
if (this._dynamicLayout) this.get_element().style.display = 'block';
else this.get_element().style.visibility = 'visible';
}
this._timerCookie = null;
}

The error is: Microsoft JScript runtime error: this.getElement().style is
null or not an object.

I have no idea how this is happening. Can someone please help me with this
error?

I'm not very familiar with JScript but my javascript expreience makes
me think the method get_element takes an argument, probably a string
which is the name of the element to be returned.

regards
A.G.
 
M

Mike Collins

Not sure I'm following what you said. This showed up as a result of an Ajax
operation I am doing, but I do not know what or how?
 
B

bruce barker

get_element() is used to get the dom element the behavior is attached to. the
error displayed means the dom object does not have a style property, so its
not a true dom object.

this means that you UpdateProgress control is setup wrong. either you are
missing the template, or gave it a bad AssociatedUpdatePanelID

-- bruce (sqlwork.com)
 
M

Mike Collins

Thanks, that did it.

bruce barker said:
get_element() is used to get the dom element the behavior is attached to. the
error displayed means the dom object does not have a style property, so its
not a true dom object.

this means that you UpdateProgress control is setup wrong. either you are
missing the template, or gave it a bad AssociatedUpdatePanelID

-- bruce (sqlwork.com)
 
M

Mashudu

I am currently experiencing the same issue. I did remove the UpdateProgress
from the UpdatePanel and put it outseide but the problem still persue. Do you
have any suggestion?

Thanks in advanced
 
M

Manish Vashistha

its only becus of update panel?

i m sure

delete all update panel (Inners nd Outers). and then check.......
 

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

Top