Ajax support / Auto-save support for tabledrag.js

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
btopro's picture

Trying to get a bit more discussion to see if this is something people are interested in. At DCBoston the creator of the table-drag.js drupal extension to make all tables drag-and-droppy said it would be cool if there was a way to AJAX update it. Well, I have it working for the book's table and would love to extend my solution into a good one that would provide this functionality to all tabledrag's. Having some issues trying to think of how to make what i've done generic enough w/o having an overarching API for modifying drupal objects via js calls.

Here's the demo of it in action -- https://elearning.psu.edu/demos/outline_designer/
Here's the issue on d.o. -- http://drupal.org/node/376107

Comments

Interesting.....

RobLoach's picture

I ran into this problem with the Popups API and integrating the Forum module support. If you go to the page without any forums, and then add a couple, the table drag still doesn't show up until you refresh the page.

This would definately be a

skilip's picture

This would definately be a cool feature. However I much doubt this would make it in core. Here's why:

1) Saving the forms in the background with AJAX could be unexpected. No other forms in D are saved using AJAX.

2) I think many actually prefer having to submit their changes. Just to make sure users think twice before changing a form.

(personally I'm not opposed to your propposal)

Nothing in drupal ajax'ed

btopro's picture

Nothing in drupal ajax'ed yet....

But if a major focus going forward is usability I think this is one area where we can improve usability dramatically. It's a pain in the butt to have to keep scrolling down the page and hitting save on some of these long forms. I also think if it was an optional type of thing like checking a box that said "save changed automatically" or "save as changes are made", something like that then we could bypass the potential fear of screwing something up. I also think there's an ajax history project or something like it so maybe a mini undo would have to be in-order.

Dono, just kickin idea's around, I see what you're saying though w/ each point

"Plaguing the world with Drupal; One Plone, Moodle, Wordpress, Joomla user at a time since 2005." ~ btopro

http://elearning.psu.edu/
http://elearning.psu.edu/projects/
http://elearning.psu.edu/drupalineducation/