Flash problems with Ajax

View: New views
1 Messages — Rating Filter:   Alert me  

Flash problems with Ajax

by Kevin Richards-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

We recently noticed that a flakey test in our continuous build was due
to the way the Flash messaging works.  We finally discovered that the
problem was that as we were saving an article and redirecting the user
with a flash message it was also possible that an ajax request had
just been made (prior to the save), this gave a window of opportunity
where the ajax call caused the flash message to be lost (the expected
message was pushed from current to next) and when the redirect request
was received the flash message was lost.

Any thoughts on how certain uri's could be excluded from the Flash
message handling?  Admittedly this is an edge case situation since the
ajax call would need to coincide closely with the original request,
but it might be more common for other people.

Kev

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email