1) Create a table with id,user_id,positionx,positiony
2) Create a model for that table
3) In your AJAX library, see if there's a callback function like afterDrag() that you can call to send the x and y values with an ajax request
4) In the controller, store the values
5) On page load, read the values for the user and position the div
HTH,
Eric (the other Eric, confusing)
On 10/22/06, Eric <[EMAIL PROTECTED]> wrote:
Hi,
I am just learing Cake. I follow the instruction from the Tuto. to use
ajax to drag a element. But How Can I just save the postion after
draged baseon the user_ID.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- Re: How to Save a Div's position into a database? Eric C Blount
