daviscross
06-19-2008, 06:52 AM
1) Script Title: DOM Drag & Drop Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/domdrag/
3) Describe problem:
I've used this script, well a modification of it where it saves the dragged location to a cookie as a moderator posted here ----> http://www.dynamicdrive.com/forums/showthread.php?t=24330&highlight=drag+drop+save
Now, its pretty cool because once you put them where you want them, they stay there, however the first time you visit the page http://www.daviscross.com/x/drag.html they line down the left of the page.
But I have a problem, I want to set default locations for each div easily so that the first time you visit the page, the divs are in the default location... when the visitor moves them, leaves and returns they are where he left them, not back in the default positions. While ive read about positioning divs, my problem is that this page is going to be a resource page for employees while at the office and while some of them have 4:3 ratio monitors, most of them have 16:9 ratio... so if i user centering div techniques they wont be in the center of ALL screens used.
Is there a simple way to make this happen... I thought about setting the cookies for the appearence on my screen, and copying them into a directory on the server that when someone visits the page for the first time only, it copies those cookies to their browser and bam, there it is... but I cant find anything like that.
Any suggestions?
Another (and preferred) option would be to have it setup like the iGoogle widgets where you drag them to the dotted areas etc.... any help?
I should mention that embarassingly enough this is my first time doing anything with divs and that while I have a programming background, its not in javascript or ajax or anything so while I can pretty much read code for stuff like this, understand it and modify it bit by bit... i have no idea what any of it actually means lol
Thank you!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/domdrag/
3) Describe problem:
I've used this script, well a modification of it where it saves the dragged location to a cookie as a moderator posted here ----> http://www.dynamicdrive.com/forums/showthread.php?t=24330&highlight=drag+drop+save
Now, its pretty cool because once you put them where you want them, they stay there, however the first time you visit the page http://www.daviscross.com/x/drag.html they line down the left of the page.
But I have a problem, I want to set default locations for each div easily so that the first time you visit the page, the divs are in the default location... when the visitor moves them, leaves and returns they are where he left them, not back in the default positions. While ive read about positioning divs, my problem is that this page is going to be a resource page for employees while at the office and while some of them have 4:3 ratio monitors, most of them have 16:9 ratio... so if i user centering div techniques they wont be in the center of ALL screens used.
Is there a simple way to make this happen... I thought about setting the cookies for the appearence on my screen, and copying them into a directory on the server that when someone visits the page for the first time only, it copies those cookies to their browser and bam, there it is... but I cant find anything like that.
Any suggestions?
Another (and preferred) option would be to have it setup like the iGoogle widgets where you drag them to the dotted areas etc.... any help?
I should mention that embarassingly enough this is my first time doing anything with divs and that while I have a programming background, its not in javascript or ajax or anything so while I can pretty much read code for stuff like this, understand it and modify it bit by bit... i have no idea what any of it actually means lol
Thank you!