Page 1 of 1
How to refresh?
Posted: Wed Oct 13, 2004 5:29 am
by yagnbda
Hi,
I have a problem in php coding.
I want to refresh a single data sell of a table, how it should be?
i.e supose there is a Table named T1 and have 5 data sells(TD1...TD5), i want to refresh contents of TD5 only, how?
i will be thank ful to you.
Posted: Wed Oct 13, 2004 5:50 am
by kettle_drum
You cant really unless you use some clever javascript that loads values into the atble via the use of some hidden frame that would refresh to get the required data.
It would be a lot easier to just reload the page.
Posted: Wed Oct 13, 2004 6:27 am
by twigletmac
PHP = serverside, JavaScript = clientside
What you want to do is on the clientside (as kettle_drum noted), you cannot do this with PHP.
Mac
Posted: Wed Oct 13, 2004 6:37 am
by yagnbda
actuly i am working on a website which is almost realtime so i cant afford to give more time in refreshing the whole page:
one thing which i think is possible but i dont know more about it. is threading possible in php?
if so we can do it with ease by embading javascript in it.
Posted: Wed Oct 13, 2004 6:48 am
by phpScott
use a hidden <iframe> on your page and use that to retrieve data and set the main page.
things like innerHTML will be used.
if you need an example I can provide it or if you want to figure it out yourself check out info on iframes.