Posting can be hazardous with a bad dialup connection or loaded server ... I would be best if the editor contents could be saved to the local disk before attempting to post and probably only needs a few good lines of javascript. Anybody out there know how???
Mon, 10/17/2005 - 12:07
#1
RE: Need Javascript to Save locally before po
You could use a timer to periodically save the editor contents to a cookie. Your code could look for this cookie on startup & offer it to the user: confirm("restore last session?").
RE: Need Javascript to Save locally before po
RE: Need Javascript to Save locally before po
setting editor contents:
var oEditor = FCKeditorAPI.GetInstance("FCKeditor1") ;
oEditor.SetHTML(html);
getting editor contents:
var oEditor = FCKeditorAPI.GetInstance("FCKeditor1") ;
var html = oEditor.GetXHTML(true);
It works fine for me on FF.