Log in

View Full Version : AJAX edit stopped fully functioning... help me locate what's missing.


SDB
08-25-2007, 05:36 PM
Hi

At some point, our AJAX post edit function stopped functioning fully.

Behavior as follows :

Click edit.. post turns into an edit box as expected.
make changes, click save... the spinning icon appears while the updates are made.
Then the spinning icon dissapears, but the post remains as an edit box, and doesn't revert to the normal text of a post.

To be clear.. the edit actually happens.. but the edit box does not dissapear and get replaced by the final text.

Any pointers as to what has gone missing to save me a) posting up our code, or b) reverting templates, would be really helpful.

Cheers

Simon

El_Muerte
08-25-2007, 07:43 PM
the returned XML document contains a PHP error at the end

SDB
08-25-2007, 08:24 PM
? Sorry, I don't follow.

El_Muerte
08-26-2007, 08:18 PM
When the XML document return in the AJAX request is malformed it won't update the page properly.
Use something like Firebug for Firefox to analyse the AJAX requests.

SDB
08-26-2007, 09:34 PM
great.. thank you sir, I'll give that a go.

Dismounted
08-27-2007, 07:05 AM
Is this only affecting yourself?

SDB
08-27-2007, 07:46 AM
No, this affects anyone who uses the edit function.

Dismounted
08-27-2007, 11:32 AM
Try reuploading the cleintscript/ directory and clear your browser cache.