Attempting to close a window gives - Access is denied



Webpage error details



User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)

Timestamp: Wed, 9 Sep 2009 14:46:42 UTC





Message: Access is denied.



Line: 44

Char: 28205

Code: 0

URI: localhost:8084/DHTMLX_Test/codeb … windows.js

-----------------------------------------------------------------------------------------------------------------------------------------------------



Hi guys,



I been placed on a new project that uses the dhtmlx pro software and I’m having to learn the APIs in short order. I have come across a problem that, as far as I can tell, shouldn’t be happening.



Having created a layout containing a viewport on which I am displaying a single window. This window closes normally when displayed with any other dhtmlx components, but when a URL is attached I get the above javascript error…



I had a look at the sample code you provided for similar problem that someone else encountered… That code does work correctly. However, after examination I found that the dhtmlxcommon.js and dhtmlxwindows.js files were different. (To what extent I’m not sure) The files I’m using are from the dhtmlxSuite_v25_pro_90904.zip archive which I believe is the latest version.



I’ve included a sample of the code I’ve been running below… Just uncomment the line to attach the URL to see that the window doesn’t close and produces the above mentioned error.



Any assistance will be greatly appreciated. As I’m finding this particular issue very frustrating. By the way the browser I’m using is IE8



Thanks



-----------------------------------------------------------------------------------------------------------------------------------------------------







DHTMLX Demo

























html, body

{

width: 100%;

height: 100%;

overflow: hidden;

}















-----------------------------------------------------------------------------------------------------------------------------------------------------

Hello,

Please try the attached demo (based on your code).
Updated file: dhtmlxwindows.js

demo.zip (116 KB)

Was the solution to this to replace the dhtmlxwindows.js file? If so that did not work for me I am still getting the Access is Denied error when I attach a URL to the window

Was the solution to this to replace the dhtmlxwindows.js file? If so that did not work for me I am still getting the Access is Denied error when I attach a URL to the window

Could you the complete demo where we can reproduce the problem ?