|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Auto query at timed intervals?
Anyone know if its possible to have a select query automatically restart at timed intervals?
Say your page is being viewed, and you want the info from the db being shown to remain updated without the user refreshing the page. Ideally the query would restart at, theoretically, every 5 minutes, to show any changes in the db info. Can the query/php script be set up to do this, or would you need it like in an iframe that that would refresh with javascript? |
|
#2
|
|||
|
|||
|
RE: Auto query at timed intervals?
There are many ways to do this, The simplest being to refresh the page itself using a meta refresh. If you are trying to have dynamic refreshes without refreshing the entire page, you could use a hidden frame and javascript/dhtml. The basic problem is that if you want to update page content after it's loaded, you will have to initiate the update on the client side. |
|
#3
|
|||
|
|||
|
RE: Auto query at timed intervals?
<meta http-equiv="refresh" content="300; url=http://www.gohere.com">
300 means 300 seconds = 5 minutes. |
|
#4
|
|||
|
|||
|
RE: Auto query at timed intervals?
Idealy - with hidden windows you could run query in timed intervals and test if there is change in database and only if yes, then refresh page.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Auto query at timed intervals? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|