Menu
Got a tricky question – don’t even know if it’s possible:
I am using the yui scripts, specifically drag and drop for lists.
I got it to work great.
But what I want to do is store in my mysql database the new position when I drag and drop so that the next time I view the page it displays the correct sort order based on how I arranged the list with drag and drop.
[B]Is there a way in javascript to read the position of a list item?
The solution I had thought up was to use JS to read this number and then update the record using AJAX.
Does this seem right?
Thanks