Serialize
| Project: | Table row drag and drop |
| Version: | 0.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
It was described on your site that you wanted to mirror the Sortable.serialize functionality of script.aculo.us. I've noticed, however, that current serialize method returns the row ids as is in the string - ie, pages[]=page1Id&pages[]=page2Id...
In script.aculo.us, however, they parse the ids to strip out the trailing value. Ie, if I have rows with ids "page_1", "page_2", etc. the returned string from serialize is pages[]=1&pages[]=2. I'd love to see this awesome jquery plug-in work like that.
-Matt

Comments
#1
Hi Matt,
Thanks for the feedback, in the end I decided to make the serialize work the way the original Sortable jQuery plugin used to work (which seems to have disappeared). However, I was just looking at NestedSortable and that has a regexp that you can set and default behaviour as you describe, so that would seem to be a good way to go for the next version.
Thanks for pointing it out.
#2
Excellent! That sounds great, thanks!