I'm using $.post() to call a servlet using Ajax and then using the resulting HTML fragment to replace a div element in the user's current page. However, if the session times out, the server sends a redirect directive to send …
I have some code like this,
<form id="abc">
<input type="text" id="txt" />
</form>
and now I want to redirect like this,
var temp = $("#txt").val();
url = "http://example.com/" + temp;
window.location.…