On 29 September 2011 15:00, Chris Sansom <ch...@highway57.co.uk> wrote:
> In sequence, this happens:
> -  User clicks image
> -  Ajax request is created, running a php script with various parameters, in 
> which...
> -  ...the necessary renaming takes place (which involves checking for 
> duplicates etc.), then...
> -  ...a php file is included* which does various processing to build up an 
> output string for the replacement div...
> -  ...in which all <> are replaced by [] so as not to confuse the xml return.
> -  Back in JS, the [] are changed back to <> and the containing div is 
> replaced.

Does ALL the JS work take place inside the onSuccess callback?


The "Back in JS" bit has to be part of the onSuccess callback
otherwise it will happen out of sequence. The A in AJAX is potentially
the hiccough here.

Regards,

Richard.
-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to