473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Ajax 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?
Jul 16 '08 #1
5 2308
On Wed, 16 Jul 2008 10:45:01 -0700, Mike Collins
<Mi*********@discussions.microsoft.comwrote:
>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.
Jul 16 '08 #2
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?

"Registered User" wrote:
On Wed, 16 Jul 2008 10:45:01 -0700, Mike Collins
<Mi*********@discussions.microsoft.comwrote:
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.
Jul 16 '08 #3
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)
"Mike Collins" wrote:
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?
Jul 16 '08 #4
Thanks, that did it.

"bruce barker" wrote:
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)
"Mike Collins" wrote:
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?
Jul 16 '08 #5
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

"Mike Collins" wrote:
Thanks, that did it.

"bruce barker" wrote:
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)
"Mike Collins" wrote:
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?
Nov 11 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dougwig | last post by:
I'm trying to handle the scenario where a user's session times out and and their ajax request triggers a redirection by the webserver (302 error?). I'm using Prototype 1.4 and the my works great...
10
by: celoftis | last post by:
Using VS 2005: This morning, following the instructions here: http://ajax.asp.net/docs/overview/InstallingASPNETAJAX.aspx, I installed ASP.NET AJAX on my WinXP Pro development machine. Following...
4
by: NOTICIAS | last post by:
Hi everybody. A very basic web page using an ScriptManager and a RoundedCornersExtender fails loading at a shared hosting environment. In my local server, such page loads correctly. I'm...
5
by: lucyh3h | last post by:
Hi, I am trying to use XMLHttpRequest to do server side validation. I have several fields on a form and a submit button. The submit button has an event assocated with it when clicked. The...
7
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
2
by: germ | last post by:
doing a simple page webmethod call an a page via PageMethods works fine in ie7 & opera9 the same call on firefox ( and I assume netscape ) generates the following error : Error: " nsresult:...
2
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if...
2
by: =?Utf-8?B?Q2VzYXI=?= | last post by:
I have the ASP.NET 2.0 AJAX Extensions 1.0 installed (v1.0.61025). As to the web.config file, I'm using the one created using the ASP.NET AJAX-Enabled website ... This error is due to that I'm...
9
by: Trapulo | last post by:
Hello, with ASP.NET 2.0 Ajax every unexpected error is managed client-side with a popup that reports the error to the user. In ASP.NET 3.5 this behavor has been changed: how can I have a similar...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.