Topic awaiting preservation: How do they do those customisable layouts in facebook and live... (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: you tell me |
posted 01-23-2008 10:24
Hey I was wondering - or rather its my bosses latest idea.. lucky me :-S... well he'd like to have a customizable layout for the web project we're working in. You knwo be able to move drag and drop elements and boxes on the page to different positions. Well I got the drag and drop part right but teh boss would like to have it be permanent in some way. You knwo taht he arranges his site workspace and it gets store din the db with his profile so whenever he logs in - his page is set up in teh same way as he left it.. Any idea how this can be done guys? |
Paranoid (IV) Inmate From: London |
posted 01-23-2008 10:53
hmm, perhaps some sort of array which holds the objects ID's in sequence that is recalled from somewhere, be it XML, a DB or whatever. you'll have to have some server-side scripting in there. |
Paranoid (IV) Inmate From: Norway |
posted 01-23-2008 10:59
Well if you already have the drag'n drop part ready, it's just a matter of saving the state ( the order/position of each widget ) in the db and associate it to a user account. Each time an element is droppped to a new position, ping the server to update that state. |
Bipolar (III) Inmate From: you tell me |
posted 01-26-2008 08:30
Well quite basically my web app is designed as such that theres a main screen and a small right column. The left column is well your workspace and its where you see the main information. The right column is kinda like a tool area where all my widgets are. |