You are not logged in.
I am using a Javascript function to save form information. The function is triggered by a timer (don't ask....).
The syntax to submit the form is standard:
document.myform.submit();
However any text entered into a textarea (using the Xinha editor) is not submitted.
Ideas?
Offline
I tried setting the focus to another field (document.myform.afield.focus();) before invoking submit(), but that does not do it.
If I understand the process, Xinha copies the "value" of the textarea into its editor. It then allows the user to manipulate the text. At some point it must copy the editor contents back into the textarea "value" so that the form submit (usually a button click) can send it to the server.
I had assumed that the "editor to value" copy occurs when Xinha loses focus (onBlur ?). Since this does not seem to be happening, how can I invoke this?
Offline
You must call document.myform.onsubmit() before submit().
You can also try my new plugin which i incidentally just got ready http://xinha.python-hosting.com/ticket/628
Offline
Excellent! Thank-you.
Offline