JavaScript OOP problem
- by Danmark
I create windows like this:
var obj = document.createElement('div');
obj.className = 'window';
obj.style.width = 300 + 'px';
obj.style.height = 200 + 'px';
obj.style.left = 30 + 'px';
obj.style.top = 200 + 'px';
//and so on
and what I need is to attach some data to each window. The data will be grabbed via Ajax and displayed in the…