It's really easy to do with Draggables and Droppables of script.aculo.us

I have updated PWC-OS (http://prototype-window.xilinus.com/PWC-OS/ only). You will see a little bone on the top left of the screen and I added a dropped zone on each windows. You can drag and drop this little bone on the desktop anywhere you want and also drop it in windows drop zone.

It's less than 10 lines of code. You can use droppables containment options if you want to restrict droppables area.

I also use cookies to store window size and position.

Seb
PS: If you have something to do that PWC does not do, my advice is: do not modify PWC code, extend it or ask on the ML if someone has done it before or if someone has any ideas. It will save you a lot of time.


On Apr 24, 2007, at 10:39 PM, Felix Shnir wrote:

Umm, I wasn't able to create a manageable drag-n-drop functionality with PWC without heavy code modification (draggin from one window into another)... any1 else?

Felix.


On 4/24/07, Joy chakraverty <[EMAIL PROTECTED]> wrote:
Ok now thete there is a real WebOS sample you got me active in the mailining list Hope I dont over do it.

I know these are not Very difficult to code for a JS but I am a php guy so bear with me here are a few thoughts that has been running inside my brain and I have not been unable to come to any conclusion with so many ways to do it. I thought maybe a little debating with fellow programmers would help
All of this is in relation to a WEB OS type installation only

[1]
Now we need a Background DESKTOP that is active ie has icons shortcuts etc. I can decide , wether I should make a DIVin main page or make a pwc window with a theme such that it can not be brought to front
.
[2]
I need to be able to drag icons around in Background, havent been able to manage a drag drop using prototype any one Managed that

[3]
I need to be able to drag icons from one wondow to another one
(its actually 3 events Source Window Icon Starts to move- >backgroundwindow icon moves->target window accepts the icon) I have seen them in the old library which I keep mentioning.

Any comments or leads to a sample online would be much appriciated
-J

Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com


_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to