Sorry but I didn't manage to reproduce the auto-save problem you
describe. Here's what I did to attempt to reproduce the problem.
[1] Unzipped the WebDAV add-on in XXE_install_dir/addon/
[2] Ran:
XXE_install_dir/bin/deploywebstart -applet editor2 -index
[3] Ran (our WebDAV server requires the user to authenticate
herself/himself):
java -cp xxe.jar com.xmlmind.netutil.SimpleAuthenticatorModule hussein
my_secret - "Document Repository"
CgpEb2N1bWVudCBSZXBvc2l0b3J5CgpodXNzZWluCm15X3NlY3JldA==
[4] Modified the generated XXE_install_dir/webstart/index.html as follows:
<html>
<head>
<title>XMLmind XML Editor Professional Edition 4.6.1</title>
</head>
<body bgcolor='white'>
<applet name="XXE" id="XXE" mayscript
code="com.xmlmind.xmleditapp.applet.Applet"
width="100%" height="600">
<param name="jnlp_href" value="xxe.jnlp">
<param name="appClass"
value="com.xmlmind.xmleditapp.applet.Editor2App">
<param name="separate_jvm" value="true">
<param name="classloader_cache" value="false">
<param name="argument0" value="-putpref">
<param name="argument1" value="autoSaveInterval">
<param name="argument2" value="300">
<param name="argument3" value="-putpref">
<param name="argument4" value="autoSaveTimeout">
<param name="argument5" value="30">
<param name="argument6" value="-auth">
<param name="argument7"
value="CgpEb2N1bWVudCBSZXBvc2l0b3J5CgpodXNzZWluCm15X3NlY3JldA==">
<param name="argument8"
value="http://localhost:8080/xdr/dav/xxe/docsrc/user/changes.html">
Sorry but XMLmind XML Editor requires the Java<sup>TM</sup> Plug-In
version 1.6.0_10 and above in order to run.
</applet>
</body>
</html>
[5] Opened "http://localhost/xxe/" (mapped to XXE_install_dir/webstart/
on my machine) in Firefox
[6] Modified something in changes.html. After waiting for 30s, the
document is automatically saved. Seen the corresponding status messages.
Also after typing more than 300 chars, the document is automatically saved.
Did that several times, it always worked.
Henry Mok wrote:
> Hello,
>
>
>
> I have a question about having the applet automatically save the edited
> document. I tried this feature using the application and it worked
> great. We are using the webdev plugin to save to a remote file.
>
>
>
> But when I deploy this to the applet, it doesn’t seem to work. Neither
> the “Max modifications before saving” or “Idle time” triggers a save. I
> am running the applet with the following options.
>
>
>
> <param name="argument27" value="-putpref">
>
> <param name="argument28" value="autoSaveInterval">
>
> <param name="argument29" value="30">
>
> <param name="argument30" value="-putpref">
>
> <param name="argument31" value="autoSaveTimeout">
>
> <param name="argument32" value="30">
>
> <param name="argument33" value="-putpref">
>
> <param name="argument34" value="makeBackupFiles">
>
> <param name="argument35" value="true">
>
>
>
> Is this correct? Is there any problems with the save when dealing with a
> remote file (webdav)? Is there any way of triggering a save through
> applet scripting?
>
>
>
> Do the preferences that you set in the application carry over to the
> applet when you deploy it? If I set up the preferences the way I like
> it, do I still have to use the putprefs to make sure the applet and the
> application work the same way?
>
>
>
> Thanks for all your help,
>
> Henry
>
>
> ------------------------------------------------------------------------
>
>
> --
> XMLmind XML Editor Support List
> [email protected]
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support