Welcome Guest, Not a member yet? Register   Sign In
How get progress from Codeigniter inserting data into MySQL via Ajax
#1

(This post was last modified: 12-03-2017, 04:40 AM by tom-njoroge.)

Hi,

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.
Reply
#2

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB