Object doesn't support this property or method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • autessa
    New Member
    • Mar 2009
    • 5

    #1

    Object doesn't support this property or method

    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$_ScriptLoad er$_loadScripts Internal function in the AjaxControlTool Kit 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
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Could you post the source code then i can help

    Comment

    • autessa
      New Member
      • Mar 2009
      • 5

      #3
      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...

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        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....b ut 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

        Comment

        Working...