Check Database after every 10 Seconds?
-
Hi Friends, I am developing a website to watch online movies. User needs to call a number to view movie (A company provide service to check whether user is connected to line or not They will call a script that will save or delete record in the database when user connects or disconnects phone line). The only think which I need is that I need to run a script that checks database after every 5 or 10 seconds whether user record exists or not. I know it is possible to 'Refresh' page after certain time but my client doesn't want to do like this. I am using (c# or vb.net) and Access database for this. I am struggling in it so waiting desperately for your reply. Regards, Abubakar Malik
-
Hi Friends, I am developing a website to watch online movies. User needs to call a number to view movie (A company provide service to check whether user is connected to line or not They will call a script that will save or delete record in the database when user connects or disconnects phone line). The only think which I need is that I need to run a script that checks database after every 5 or 10 seconds whether user record exists or not. I know it is possible to 'Refresh' page after certain time but my client doesn't want to do like this. I am using (c# or vb.net) and Access database for this. I am struggling in it so waiting desperately for your reply. Regards, Abubakar Malik
use XMLHTTP Request and response in javascript. Send asynchronous request and get the response. Prnt the value where u want to
Cheers Navaneeth!! www.w3hearts.com
-
use XMLHTTP Request and response in javascript. Send asynchronous request and get the response. Prnt the value where u want to
Cheers Navaneeth!! www.w3hearts.com
It will be really nice if you give me some code for that.
-
Hi Friends, I am developing a website to watch online movies. User needs to call a number to view movie (A company provide service to check whether user is connected to line or not They will call a script that will save or delete record in the database when user connects or disconnects phone line). The only think which I need is that I need to run a script that checks database after every 5 or 10 seconds whether user record exists or not. I know it is possible to 'Refresh' page after certain time but my client doesn't want to do like this. I am using (c# or vb.net) and Access database for this. I am struggling in it so waiting desperately for your reply. Regards, Abubakar Malik
-
Hi Friends, I am developing a website to watch online movies. User needs to call a number to view movie (A company provide service to check whether user is connected to line or not They will call a script that will save or delete record in the database when user connects or disconnects phone line). The only think which I need is that I need to run a script that checks database after every 5 or 10 seconds whether user record exists or not. I know it is possible to 'Refresh' page after certain time but my client doesn't want to do like this. I am using (c# or vb.net) and Access database for this. I am struggling in it so waiting desperately for your reply. Regards, Abubakar Malik
You can simply use an AJAX timer that manage the hidden postbacks that check if the record exist, interrupts the video. AJAX timer is a component of Microsoft AJAX framework (Atlas) and it's completely freeware. Enjoy ;)
Carmine, Webmaster of: www.thetotalsite.it My web blog: blog.thetotalsite.it