Save_edit does full page reload

izmeez - June 17, 2009 - 05:26
Project:Save & Edit
Version:6.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:himerus
Status:needs review
Description

I just began using the save_edit module. It works great but I am wondering if it really needs to do a full page refresh whenever the "save & continue editing" button is used. I don't think this is a function just of the browser I am using.

It would be nice if it doesn't need to do a full page reload.

Thanks,

Izzy

#1

himerus - June 17, 2009 - 13:01

You are right, currently it is set to just follow the default drupal saving methods which don't include any ajax interaction for saving.

My original though was that it would be GREAT to do it this way, but it will take a bit more code. If I can actually implement that without too much issue, I will do my best. If that is not too bad to implement, it could also do an "Auto-Save" feature as well after a set amount of time.

I will look into that, and see what the easiest way to implement an AJAX/jQuery save would be.

#2

izmeez - June 17, 2009 - 15:44

You may already be aware of the Autosave module:
http://drupal.org/project/autosave

I was considering trying it but noticed there has been no update for 6 months and there are a number of issues outstanding so I haven't pursued testing it.

Izzy

#3

himerus - June 20, 2009 - 03:22
Assigned to:Anonymous» himerus
Status:active» needs review

I have seen the autosave module.
I would LIKE to see this type of feature integrated. (forget autosave type feature for now), but having it make the save & edit call via jQuery, and return the data immediately.

There are a few things I have to consider. the portion of the page wrapped in the element need to be reloaded completely. the $messages variable needs to be printed as well in case there are errors on save.

This will take some investigation and time to put together. I will see what I can fit in over the next week or two.

#4

vegeneric - September 15, 2009 - 19:14

What about getting this module integrated with http://drupal.org/project/ajax ? The AJAX module already allows node submission and preview via ajax.... so i'm thinking a small ajax plugin could be written to accommodate save & edit as well. Thoughts?

 
 

Drupal is a registered trademark of Dries Buytaert.