Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: Insanity on April 30, 2007, 01:57:00 pm

Title: Virtual Processes
Post by: Insanity on April 30, 2007, 01:57:00 pm
I've gotten stuck on a part of my web desktop:  processes.  I just don't know how to go about doing this.  I want to create processes so that each application can control the "windows" they spawn.  How would I do this? (BTW, this is in JavaScript)

Something like this for example (this probably wouldn't work):
c1-->
CODE
ec1process["aboutme"].win = new Window({
   className: 'mac_os_x',
   title: 'About Me',
   width:384, height:150,
   destroyOnClose: true,
   recenterAuto: true,
   showEffect: Element.show,
   hideEffect: Element.hide
});
process["aboutme"].myDiv= document.createElement("div");
process["aboutme"].myDiv.setAttribute("id","mydiv");
process["aboutme"].myDiv.appendChild(document.createTextNode("hello world"));
process["aboutme"].win.getContent().appendChild(myDiv);
process["aboutme"].win.showCenter();
process["aboutme"].win.setConstraint(true, {left:0, right:0, top: 20, bottom:10});c2
ec2
Title: Virtual Processes
Post by: necro on May 13, 2007, 07:58:00 am
no idea...do you mean having object like behaviour?