• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
redirect funtion in codeigniter

#1
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
Reply

#2
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]
});
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.