Page 1 of 1
automatically update
Posted: Tue Jun 03, 2003 10:09 am
by gasoga
Hey
I was wondering if it is possible to automatically update a webpage when a new row is inserted to the database??
You see when i recieve emails it goes Directly in to the data base but if i want to see if a new email has been sent i have to refresh the page.
Is there anyway that when a new email is sent to the data base it will autmatically appear on the webpage ??
Thanx
Posted: Tue Jun 03, 2003 10:45 am
by volka
nope, there is no connection between the webserver and the client after the document has been delivered.
Posted: Tue Jun 03, 2003 11:31 am
by RedRasper
Hi,
Just one thought you could just set the page to refresh every so often though?
<META HTTP-EQUIV="Refresh" CONTENT="300">
The 300 is the time in seconds to refresh the page.
I know its not a brilliant solution, but it might help!
RedRasper
Posted: Tue Jun 03, 2003 2:22 pm
by KissMyBrain
Hello,
isn't it possible to realize this with a combined php/javascript?
I can't describe it very detailled because of my bad english and my rudimentary javascript knowledge, but whats about this:
A JavaScript can make a action in a specified interval. isnt it possible to launch a small php-page in the background which connects to the Database and checks if a change has happen?
the mainpage could be refreshed if anything is changed...
Please correct me if I misunderstood something...
Bye
KissMyBrain
Posted: Tue Jun 03, 2003 2:30 pm
by Sevengraff
KissMyBrain wrote:Hello,
isn't it possible to realize this with a combined php/javascript?
I can't describe it very detailled because of my bad english and my rudimentary javascript knowledge, but whats about this:
A JavaScript can make a action in a specified interval. isnt it possible to launch a small php-page in the background which connects to the Database and checks if a change has happen?
the mainpage could be refreshed if anything is changed...
Please correct me if I misunderstood something...
Bye
KissMyBrain
people would probally think that the window is a pop-up ad, and close it themselvs, or think badly of the website. The auto-refresh after 300 seconds is a good idea if your page gets updates very often.