1
Vote

DialogWindow javascript errors when opening and closing multiple times.

description

I am having an issue when opening and closing a dialogwindow multiple times. This is happening in IE8.
 
Any idea on how to resolve this would be much appreciated. This happens on the demo site - http://www.metabuilders.com/Tools/DialogWindow.aspx
 
Thanks.
 

 
Webpage error details
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Tue, 19 Oct 2010 11:49:58 UTC
 
 
Message: 'undefined' is null or not an object
Line: 100
Char: 3
Code: 0
URI: http://www.metabuilders.com/WebResource.axd?d=gPwGzWgX8USMDLzTJq9nBM18g3PJd73vTPxTkDOGUrZzZj0qZ7RUNGzt669ocMrO0UDb6Oj0U0XwceJ7bjCeMsUpOOkN0z0X7ainHeuSGMzZae6vEuUsVjbiTYput3T3RfgRU3MFiwYMbBHGjNTnZ1gw03z6HGOfbcnRRLICGzldmVqv0&t=633260754606600000
 
 
Message: Permission denied
Line: 74
Char: 4
Code: 0
URI: http://www.metabuilders.com/WebResource.axd?d=gPwGzWgX8USMDLzTJq9nBM18g3PJd73vTPxTkDOGUrZzZj0qZ7RUNGzt669ocMrO0UDb6Oj0U0XwceJ7bjCeMsUpOOkN0z0X7ainHeuSGMzZae6vEuUsVjbiTYput3T3RfgRU3MFiwYMbBHGjNTnZ1gw03z6HGOfbcnRRLICGzldmVqv0&t=633260754606600000
 
 
Message: The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.
 
Line: 3
Char: 3
Code: 0
URI: http://www.metabuilders.com/WebResource.axd?d=gPwGzWgX8USMDLzTJq9nBM18g3PJd73vTPxTkDOGUrZzZj0qZ7RUNGzt669ocMrO0UDb6Oj0U0XwceJ7bjCeMsUpOOkN0z0X7ainHeuSGMzZae6vEuUsVjbiTYput3T3RfgRU3MFiwYMbBHGjNTnZ1gw03z6HGOfbcnRRLICGzldmVqv0&t=633260754606600000
 
 
Message: The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.
 
Line: 3
Char: 3
Code: 0
URI: http://www.metabuilders.com/WebResource.axd?d=gPwGzWgX8USMDLzTJq9nBM18g3PJd73vTPxTkDOGUrZzZj0qZ7RUNGzt669ocMrO0UDb6Oj0U0XwceJ7bjCeMsUpOOkN0z0X7ainHeuSGMzZae6vEuUsVjbiTYput3T3RfgRU3MFiwYMbBHGjNTnZ1gw03z6HGOfbcnRRLICGzldmVqv0&t=633260754606600000

comments

litasst wrote Nov 2, 2010 at 2:51 PM

I am not sure this is the best fix but I modified the DialogInputBoxPage.cs source file.

On line 124 I changed "this.Close();" to "this.Close("");" and that appears to have fixed the problem for me with the DialogInputBox.

The Dialog window was a similar issue but I had to modify the JavaScript to fix it. I modified the DialogWindowBaseScript.js file line 54. I changed "MetaBuilders_DialogWindow_DoDialogPostBack(null);" to "MetaBuilders_DialogWindow_DoDialogPostBack('');" and that seems to have done the trick for me.

I have not thoroughly tested these changes so I might have broken something else but it's a start!

litasst wrote Nov 2, 2010 at 3:13 PM

ewsachse had a better solution. You can download a replacement DialogWindowBaseScript.js from his comment here:
http://metabuildersweb.codeplex.com/workitem/9182

wrote Feb 14, 2013 at 2:25 AM