Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-10-29 15:02:10

plungerman
New member
Registered: 2007-10-29
Posts: 6

Inline edit with jQuery and scriptaculous

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

#2 2007-10-29 18:44:36

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Inline edit with jQuery and scriptaculous

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 smile 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

#3 2007-10-30 12:27:43

plungerman
New member
Registered: 2007-10-29
Posts: 6

Re: Inline edit with jQuery and scriptaculous

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

#4 2008-02-20 15:47:39

funkiwan
New member
Registered: 2008-02-20
Posts: 1

Re: Inline edit with jQuery and scriptaculous

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

Board footer

Powered by FluxBB