I have a situation where I send jquery ajax post request but in my web application, the handler for this specific ajax request (after processing post parameters), will invoke an action in another controller ( not sure if this is called redirect) which basically renders the whole website page ( like page refresh). But I notice browser keeps display the same page instead of refreshing to the content of the new page.
Is there something wrong? How can I deal with this situation?
I had to edit my question because I changed my ajax call.
This is what the code looks like:
function chkSubmit(event, actionType) {
var msgid = showlst('Please wait ...');
var data = ''
if (actionType == 'IAmDone') {
var letters = 'e,b,c'
data = 'actionType=' + actionType + '&letters=' + letters;
} else data = 'actionType=' + actionType;
$j.ajax({
type: 'POST',
url: context + '/app/handleChk',
data: data
});
return false;
}
The above function runs when a button on the page is clicked. But this same page keep displaying. The browser debugger shows that it did receive 200 OK response from the new action which it was supposed to refresh page with. I am using Chrome browser and jquery 1.6.1
Sorry for my typo in code sample. I corrected it.