redirect funtion in codeigniter |
Hello please i need a help to as to how to stop codeigniter redirect function refresh.anytime i run my app it continuesly refresh the page without stoping
thanks in advance
Redirectin perform at some ID or Class so you can use the following trick
$('#particularID').on('event like submit', function(e) { e.preventDefault(); e.stopPropagation(); // only neccessary if something above is listening to the (default-)event too [YOUR CODE GOES HERE] }); |
Welcome Guest, Not a member yet? Register Sign In |