Connecting Tech Pros Worldwide Help | Site Map

Object doesn't support this property or method

Newbie
 
Join Date: Mar 2009
Posts: 4
#1: 3 Weeks Ago
Hi,

not sure if this is the correct forum for my problem but i hope someone could still help...

I have a page where i close a window after postback. It works fine in IE6, but I encountered 'Object doesn't support this property or method' error in IE8. The error occurs in the Sys$_ScriptLoader$_loadScriptsInternal function in the AjaxControlToolKit framework.

I'm using RadWindow and ajax ScriptManager. The issue occurs when a button is clicked and some server-side codes are executed then I call my client-side Close function.

Why am I encountering this error?
ThatThatGuy's Avatar
Member
 
Join Date: Jul 2009
Location: Mumbai--India
Posts: 43
#2: 3 Weeks Ago

re: Object doesn't support this property or method


Could you post the source code then i can help
Newbie
 
Join Date: Mar 2009
Posts: 4
#3: 2 Weeks Ago

re: Object doesn't support this property or method


ThatThatGuy,

thnx 4 d reply. d error occured because the scripts have not been loaded completely when the window was closed. dr shud b a delay when the function 2 close d window s called. still testing d solution... hope dr r no other problems...
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,083
#4: 2 Weeks Ago

re: Object doesn't support this property or method


The error is actually happening when the postback to the server returns to the window when the window is closing.

When the browser window is closing the page is unloaded...this means that the JavaScript on the page is unloaded.

So, what's happening is that you are sending a postback to the server. When you send a postback to the server it returns to the browser after it's finished processing....but by this point the browser window is unloading/closing. You are getting an error because the Ajax-enabled controls on the page need to access the JavaScript that has been unloaded.

If you want to get around this you should look into using the setTimeOut() method to delay when the window is closed so that the postback can return without error.

-Frinny
Reply