dhtmlXWindows seems to cache

Hi,



I’m trying to use dhtmlXWindows the following way:



* Generate Layout, etc (probably not interesting, is only the code around)

* Add Toolbar to Layout

* Generate DIV dynamically in JSP

* Generate Button in Toolbar which opens the dhtmlXWindow

* attach dynamically generated DIV to dhtmlXWindow



DIV i attach looks like this:



________________________________________________________________________________________________________























































Theme Einstellungen:
Thema:

Finance Orange

Finance Red

Finance Orange Grey

Retro

Kristall

Finance Classic

Blau - neu

Blau



Blau Theme von SM

Finance Blue

Finance

Klassisch

Fimox



Icon-Größe:

klein

gro�

mittel



<input type=“button” name=“changeTheme” value=“Speichern”

onclick=“changeTheme(document.getElementById(‘Theme’).value, document.getElementById(‘IconSize’).value)”>






________________________________________________________________________________________________________



When i open the dhtmlXWindow the first time everything looks good.

Especially the “selected” attribute works - so i get the correct value in my DropDown Box.



But if i open the Window the second time it ignores the selected attribute and shows the last change made in the window.

It probably caches the last state and doesn’t reload from the html coding.

Even if i reload the whole site.



I tried to destroy and unload everything, but still the caching problem exists.

Coding here:



var dhxWins = new dhtmlXWindows();

            dhxWins.enableAutoViewport(true);

            dhxWins.setImagePath("<%= dhtmlxPath %>/imgs/");

         themeWindow = dhxWins.createWindow(“themeWindow”, 400, 250, 400, 200);

         themeWindow.center();

     themeWindow.attachObject(‘themeInhalt’);

     themeWindow.button(“close”).attachEvent(“onClick”, function() {

         themeWindow.detachObject(‘themeInhalt’);

themeWindow.close();

dhxWins.unload();

});



Even with this many tries to unload the state it still caches and ignores the real content of the div (generated again on page reload with the same initial values as the first time)



What is going wrong here?


Hello,


the issue wasn’t reproduced locally. The sample is attached


win_obj.zip (40.7 KB)