dhtmlxWindow not loading

Hello,



We are using the pro version of the suite but have just downloaded the standard version of dhtmlxWindows as this was added after we brought the suit. It looks like it should be good enough as it is. However I am getting errors when trying to initialise a window.



I have included all the relevant files in my page but when I call



var dhxWins = new dhtmlXWindows();

var win = dhxWins.createWindow(1, 150, 150, 200, 200);



I get the following error?



this.wins[a].style is undefined



caused by

[Break on this error] “aqua_sky”: {“header_height”: 31, “bord…+”’ class=‘dhtmlx_wins_"+this.skin+"’>"+

dhtmlxwindows.js (line 23)



I am using the standard skin.



Any Ideas?

Many thanks

Scott Bailey



Hello,

try this way:

var win = dhxWins.createWindow(“1”, 150, 150, 200, 200);


Hello,



 



I am revisting this and have narrowed down the coase of the problem. We are using ViaMichelin maps on anothre part of he page, as soon as I take out the link for this the error goes away. This is the link for the script we include for the maps



<script src=“api.viamichelin.com/apijs/js/api.js
        type=“text/javascript”>



Would you have any suggestion without habing to look into the scripst for this?



 



Scott



 



 

Hello,

Try to use string id for window. Demo or live link will help us to understand the root of issue.


Hello,



It fails before even calling the create window line it fails on



var dhxWins = new dhtmlXWindows();




I have been reading some forums on other problems with viamichelin and it seems that they extend the prototype object




>
> // nabble.com/Jquery-and-ViaMic … #a17644599



Would it be this that is breaking this and if so is there a work around?



Many thanks



Scott



 



 


I have created two test pages whch demonstrate the problem



 



The first has the problem



axscend.com/testwindow2.php#



Scott



 

Try this:


add the following code into dhtmlxwindows.js:


this.wins = {};

// here
for (var a in this.wins) delete this.wins[a];

In your samples you initting windows before rendering.
Windows use document.body as a default viewport. If not rendered you’ll get an error.


Hello,



This takes it one step further the window appears though blank but i now get the error



this.wins is undefined



Thanks



Scott



 


Hello,



This has turned out to be a badly written script by michelin - to get around this I have attached the map to a tabbar in an inline frame. This prevents the code interfering. Just thought I would lpost this in case anyone else has this problem.



Scott