In my View page jquery Ajax call like this
onclick: function() {
$.ajax({
type:'POST',
url:"<?PHP echo base_url('trand/report/checking'); ?>",
data: {nm:'vnky'},
success: function(){
alert("success");
},
error: function(){
alert("error");
}
});
chart2.exportChart({
type: 'image/png',
filename: dynmicfilename
});
}
exportchart function works perfectly .Inside ajax call also working alerts nice, but url is not executed, by using firebug when clicking the url in new tab , then it works fine.
How can I execute url in ajax call. can you help on this ?