Hi! Yepp, thats a error aswell, cause the second window uses setClass.
Should look like this in dynlayer_base.js: p._cssClass = ''; p.setClass = function(c,noInlineStyle){ this._className=c; if(this.elm) this.elm.className=c; else { this._cssClass=(c)? 'class="'+c+'"':''; this._noStyle=noInlineStyle; } }; Its in the newest CVS/nightly build, so if you dl that one it should be fine. Thanks for the response. Regards Daniel Tiru > Very nice! > > The first window works fine but the second causes an error every time I > click while dragging so it keeps following the mouse forever. Seems like the > error is caused inside of dynlayer_base.js > Maybe you miss an argument somewhere in your code? > > Anyway, it's line 157 in dynlayer_base.js > The code is something like that: > > p._cssClass = ''; > p.setClass = function(c,noInlineStyle){ > this._className=c; > ERROR if(this.css) this.css.className=cn; (cn is undefined) > else { > this._cssClass=(c)? 'class="'+c+'"':''; > this._noStyle=noInlineStyle; > } > }; > > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag von Daniel > Tiru > Gesendet: Dienstag, 15. Juli 2003 20:51 > An: dynapi-dev > Betreff: [Dynapi-Dev] Window widget > > > Hi folks > > I have made a window widget thats pretty ready for the cvs but i thought > that i should run it trough the dev-list first. > > Its pretty straight forward but alot of arguments that need to be set if you > want it to look nice. I have attached the window.js file and that one should > be included in the packages, it is a dynlayer aswell. Aswell you will find > some images and the example page. > > Tell me if i have made something wrong or what you all would like to see in > the widget thats not there. > > One bug is that i get a error in the example file at line 152, but i have no > clue where that as cause the example file is not that long, its just 137 > lines so i need some help there if anyone have some time over. It is when i > close one window and then toutch the other one. > > Best Regards > Daniel Tiru > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[EMAIL PROTECTED]/ ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/