Javascript- how do I force it to be blocking?
I'm trying to do the following, but I think the redirect is happening
before the POST is completed. How can I ensure the POST completes before
the redirect happens?
$.post("/cloudsponge-json",JSON.stringify(post_object),function(data) {
window.location.href = "/contacts/connect";
});
No comments:
Post a Comment