JQuery.Net deployment issue
Just started going into jQuery and there was a problem with the jQuery Post call working fine on my local dev box (VS 2008 embedded web server) but failing when deploying to Windows 2003 server (IIS 6).
The mail is working and the page will be submitted to be processed correctly, but the response will never be received by the Post call function. The submit page just reloads without any changes.
Here is my Post function (it's wrapped in $(document).ready(function() {...
The alert in the response function never fires:
$('.nextButton').click(function() {
var idString = '';
$("div.dropZone > div").each(function(n) {
idString += this.id + '|';
});
$.post('CustomPostHandler.aspx?step=criteria', {
selected: idString
},
function(data) {
alert(data);
});
});
The mail handler page gets the idString variable ok, after some processing it tries to write the response:
// Return dummy response to caller
Response.Clear();
Response.ContentType = "text/plain";
Response.Write("success");
Response.End();
I checked the deployment server environment and can't see anything (this works with Framework 3.5 SP1). Anyone have any ideas or am I missing something?
source to share
I agree that it is probably because of caching. A more general function $.ajax
allows you to set the cache parameter to false to disable caching.
Check out the documentation .
source to share