Window init() error / Cannot assign to '[number]'

Hi,



I’m trying to get a dhtmlxWindow in a page, after ‘onclick’ on a object; this page contains already Grids, Tabbar, etc …

I’ve tried to use the example code from samples:

"











var dhxWins = new dhtmlXWindows();

    dhxWins.enableAutoViewport(true);

    dhxWins.setViewport(350, 50, 400, 400);

    dhxWins.vp.style.border = “#909090 1px solid”;

    dhxWins.setImagePath("…/wnd/codebase/imgs/");



var w1 = dhxWins.createWindow(“w1”, 10, 10, 320, 240);

    w1.setText(“Filters for studies”);

    w1.button(“close”).disable();

    w1.setModal(true);

"

I’m getting the error " Cannot assign to ‘[number]’ ".



Thanks for your help.

Regards.

Hello,

dhtmlxWindows code correct, it seems problem with other part of script. What is “dhtmlxwindows_mod.js”?
could you please attach demo to vire issue or give us direct link?

Hi,

Sorry, I took an example and tried it, but I really didn’t realised that “dhtmlxwindows_mod.js” was the error.
I can’t find it again, so I don’t know where was this example.
Sorry for that “stupid” error.

Thanks.