I've set a content-type with autosave enabled: I'd like that the node being autosaved can be viewed "live".

On the admin side: node is edited and autosaved periodically.
On client/viewer side: node is viewed and updates are in "live" mode.

I was thinking about the Refresh module, but I don't like flickering between loads and anyway content isn't updated till a full "save" is performed.

Second choice is a custom (php) block inside the node that would set a "DIV" filled with autosaved content and a JS (jquery) snippet for its update via ajax: I don't know which query perform to retrieve this content (actually I need a single specific field, not all node's content).

Any advice is welcome! Thankx!

Comments

Crell’s picture

Status: Active » Closed (won't fix)

Given the way Drupal 7 works, I am not sure this is even possible. In fact I'm reasonably confident it is not, at least not in a way that works outside of specific edge cases. (Remember, admin theme and "live" site are two different themes with potentially ridiculously different layouts.)

Elementica’s picture

I'm not sure I've explained everything: it presently works, but I'm not satisfied with the solution I've set up.
Autosave is saving data as needed (and it's stored in drupal's db, of course).
Looking at the page as a common user, I can update via ajax a div reading the db.