liveSave for oneform editor added

As requested by Mario (but it was actually on the TODO list before), I implemented a "LiveSave" feature for the oneform editor or in other words Save-Without-Reloading.

If you edited documents (like xsl or css files) in the oneform editor, every-time you clicked (or hit alt/ctrl-s) submit, the page was reloaded, the cursor position lost and it showed you again the top of the file. Pretty annoying, especially with long documents. Not anymore :) We use now XMLHTTPRequest in the background for doing the save, which prevents the needed reload. Works on Win/IE, Mozilla/Firefox and Safari.

It's not bulletproof right now, if the save didn't work, you won't be notified, it still says most of the time "Document saved." :) Will try to fix that later. (But if the file is not writable, which is the most common "error", it will warn you on opening the editor.)

Update: The oneform editor now also checks for well-formedness of XML and HTML documents. This will prevent saving non-valid documents and producing errors. Tested on Firefox, does not work on Safari (but liveSave in principle still works, just not the well-formed-check), not tested on IE (but IIRC should work there as well).

Related Entries:
Kupu updated to 1.2.1
Comments (1)  Permalink

Kupu updated to 1.2.1

I updated Kupu to the 1.2 branch of them (only in the trunk). You won't recognize many differences (a little bit different drawers, a new table creator and a more fancy external link tool), but we wanted to make sure to have the latest bug fixes.

It works fine here, although not very deeply tested ;)

Related Entries:
liveSave for oneform editor added
Comments (0)  Permalink
1-2/2