You are not logged in.
greetings,
we are attempting to integrate Xinha with the jQuery inline edit plugin jeditable. everything works perfectly well except that on the first edit, the changed data is not submited but rather the data loaded from the server without any edits is submitted. with firebug, you can see that the POST data is the data from the server and not the edited data in the textarea. oddly enough, if you go to the source view, and then come back, the edited data is submitted properly.
i tried a similar integration with scriptaculous' inline edit and had a similar problem. with scriptaculous, we found that after submitting once or canceling, and then invoking the inline edit manoeuvre once again, the "loading text from server" text was displayed and not the data from the server.
so we were hoping someone in the Xinha community might be able to shed some light on this anomaly.
thanks in advance.
yours,
steve
Last edited by plungerman (2007-11-05 15:22:10)
Offline
The setting where text is only submitted after changing to text mode normally happens when the form is submitted without prior execution of the onsubmit event (form.onsubmit() in javascript).
You can see this in your application by applying this test case:
1. Enter the edititing mode and wait for the editor to be loaded
2. open Firebug and execute the following line in the console
document.forms[0].onsubmit = function () {alert('onsubmit is executed NOW')}
3. click OK.
YOu will notice the alertbox only appears after the editor has vanished
4. repeat steps 1-3. you will now notice the alert popping up BEFORE the editior disapperas
I have no idea why this happens, but maybe it helps you track the error
btw. nice application but I sense the danger of massive memory leaking issuses
btw do you have any idea where these junk characters at the end of some paragraphs come from?
Offline
yes, i see what you mean, thanks for the advice. we just might run into some memory problems, that is a fact, but we'll see what happens. i have no idea where the junk characters came from, but it seems to have stopped.
Offline
Any chance you could share some of the code, or at least the steps you've taken to get xinha working with jeditable? I'd love to not have to reinvent the wheel on this one.
Thanks!
Jonathan.
Offline