JQUERY POST, UI to show if status is "saving" "still saving" "error" "complete"

Posted by nobosh on Stack Overflow See other posts from Stack Overflow or by nobosh
Published on 2010-05-09T16:06:18Z Indexed on 2010/05/09 16:08 UTC
Read the original article Hit count: 356

Filed under:
|
|

I have a JQUERY Post call which is posting critical data to the server. Which if isn't posted successfully, results in a huge loss of important data.

I have a save banner UI show on the page before the JQUERY POST, after the JQUERY Post it has the Save Banner go away.

I'd like an inbetween state, where if the save is taking longer than 1 second, it updates from "saving" to "saving..."

but if it doesn't save within 4 seconds, it says "error, try again" something like that.

Any ideas on how to accomplish this with JQUERY?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX