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):

Code:
process["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});
Java rules the world!

Robot class, perhaps?
Well, if you want to make "processes" regularly pop up and check status, use setTimeout() when you create the window in the first place, then in the function called by setTimeout(), set a timeout to itself.
haveacalc wrote:
Java rules the world!

Robot class, perhaps?


he's doing this in Javascript, not Java, there is a huge difference.
elfprince13 wrote:
haveacalc wrote:
Java rules the world!

Robot class, perhaps?


he's doing this in Javascript, not Java, there is a huge difference.
He edited the post to say that after haveacalc posted. Smile My post took that fact into account.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement