Ajax Error?

  • Thread starter Thread starter Mike Collins
  • Start date Start date
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?
 
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.
 
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?
 
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)
 
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)
 
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
 
its only becus of update panel?

i m sure

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