The project owner of MooEditable suggested this code:
window.addEvent('load', function(){
// MooEditable
mooeditable = $('body').mooEditable();
// Post submit
$('blogPost').addEvent('submit', function(e){
alert($('body').value);
return true;
});
// Auto Save Classes
var request = new Request({
url: 'actions/blog_post_autosave.php',
method: 'post',
onComplete: function(response) {
$('log_res').set('html',response);
// I have no idea where is this 'el' from
el.set('tween', {duration: 'long'});
el.tween('opacity', 1);
}
});
var sendForm = function() {
// save the content first (updates the hidden textarea, in other
words)
mooeditable.saveContent();
// then send the AJAX request
request.send($('blogPost'));
}
sendForm.periodical(10000);
});
But now it does not seem to make the Ajax.Request at all. That is
weird right?