retrying a post

retrying a post

Could someone provide a quick snippet of code for setting a timeout on a post?

I tried using JQuery post but it sometimes just goes away and never comes back.  I have retry logic in my app that will survive network blips and retry a data communication but it needs a timeout to work properly.

Or if there's a way to just ask JQuery to do the retries, that might be fun too.

Thanks.