example for opening window, attaching HTML string and a slid

It’s probably very simple, but for some reason I can’t get it to work. All I need to do is open a modal window using JS, attach some text to it, and add a vertical slider. Could you give me an example, or point me to example if it exists? My code is below, but it just freezes underlying window (I call this window from another one). PLease help!



    p = dhxWins.createWindow(‘result’, 0, 0, 600, 650);

    p.setText(‘readcfg’);

    p.setModal(true);

    sld = new dhtmlxSlider(slider, 20, ‘dhx_blue’, true);

sld.setImagePath("…/codebase/imgs/");

    sld.init();

    //p.appendObject(sld); – doesn’t work

    //sld.linkTo§; – freezes underlying window


Hello,


the sample is attached


1248942886.zip (62.7 KB)

Thank you!!