• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How get progress from Codeigniter inserting data into MySQL via Ajax


I have a script inserting records into MySQL as it sends messages to users. The script may take several seconds or minutes depending on the number of messages being sent. I want to notify the user on the front end about the number of messages sent after every 5 seconds using JavaScript setInterval which has a POST Ajax request.

The problem am encountering is the Ajax request gets to success only after the php script has finished sending all messages and inserting the records into the database instead of giving the progress after every five seconds.

Thanks in advance for assistance.

You can read this article about it here.

A jQuery Progress Bar
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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