Geeks With Blogs
Ben Bastiaensen Living the .NET live
While testing an AJAX enabled web app I sometimes stumbled upon this script error: 'this.get_element().style' is null or not an object. It was a hard nut to crack this one. This was the actual message (in dutch, sorry ):

Bericht: 'this.get_element()' is leeg of geen object

Regel: 691

Teken: 13

Code: 0

URI: http://testsvnrekenmodule.dataleaf.nl/ScriptResource.axd?d=2EqeFsM1TXvejAN7rs-qRjWO1PqeNkBXDT2NkIE87E8D7WDMydoFVixUr4VEkAe74Gfs2uvzsMdh6_Qzi0k_G_ieMgZeXVZBgQ38L4KW1iU1&t=ffffffffc23ef909


The situation:
  • AJAX Enabled web app using slider extenders (and hovermenu extenders).
  • In some circumstances a script error is generated. In most cases it is not.
The reason:
It turned out that the error happens at times when a new Postback is triggered while a previous one hasnt finished yet. That is quickly changing the sliderhandle's position in this scenario. The Postback where triggered because i had set the AutoPostBack property of the extended TextBox to "true".

The solution:
Set the AutoPostBack property of the Extended TextBox to "false" and the sun will shine again.
  Posted on Wednesday, July 15, 2009 12:32 AM ASP.NET , AJAX | Back to top


Comments on this post: 'this.get_element().style' is null or not an object

# re: 'this.get_element().style' is null or not an object
Requesting Gravatar...
Hi,

I have the same problem. But I didn't have any extenders other than, Update Panel and Update Progress bars. Any Idea?!

Thanks
Siva
Left by Siva on Oct 20, 2009 4:21 AM

Your comment:
 (will show your gravatar)


Copyright © Ben Bastiaensen | Powered by: GeeksWithBlogs.net