JavaScript Error Object required

  •  07-16-2009, 3:57 AM

    JavaScript Error Object required

     Hi,
     
    I am using IE8 and during page load I recive javascript errors:
     
     _hideImplementation : function() {
            /// <summary>
            /// Internal implementation to hide the modal dialog
            /// </summary>

            this._backgroundElement.style.display = 'none';
            this._foregroundElement.style.display = 'none';       //Object required.

            this.restoreTab();

            this._detachPopup();
        },
    AjaxControlToolkit.ModalPopupBehavior.prototype = {
        initialize : function() {
            /// <summary>
            /// Initialize the behavior
            /// </summary>
            
            /*
                <div superpopup - drag container resizable><div -- drag handle\dropshadow foreground></div></div>
            */

    .
    .
    .
    this._popupElement.parentNode.appendChild(this._foregroundElement); //Object required
    this._foregroundElement.appendChild(this._popupElement); //Incorrect argument.
    .
    .
    .
    this._foregroundElement.parentNode.appendChild(this._backgroundElement);//Object required

            this._foregroundElement.style.display = 'none';//Object required
            this._foregroundElement.style.position = 'fixed';//Object required
            this._foregroundElement.style.zIndex = $common.getCurrentStyle(this._backgroundElement, 'zIndex', this._backgroundElement.style.zIndex) + 1;//Object required
     
    .
    .
     
    }
    I don't know what causes this errors.
     
    I am using asp.net 3.5 with C#
     
    any help will be appreciated
     
    thasnks in advance

     

View Complete Thread