[eluser]Cgull[/eluser]
I found the solution, I think....
In my javascript code I changed the success function:
Code:
var options = {
target: '#status',
success: function(data) {
if(data == 'success')
{
$('#status').hide();
[removed].replace("http://thinklocal.dev/admin/province");
}
},
error: function ajaxError(request, type, errorThrown)
{
var message = "There was an error with the AJAX request.\n";
switch (type) {
case 'timeout':
message += "The request timed out.";
break;
case 'notmodified':
message += "The request was not modified but was not retrieved from the cache.";
break;
case 'parsererror':
message += "XML/Json format is bad.";
break;
default:
message += "HTTP Error (" + request.status + " " + request.statusText + ").";
}
message += "\n";
alert(message);
}
};
// pass options to ajaxForm
$('#issueform').ajaxForm(options);
In my controller, after echo success I also return true.
Looks like it is working now, halleluya and praise the lord.
Thank you so so much for all the help.