Page 1 of 1

show updated results

Posted: Mon Jul 09, 2007 9:42 am
by shivam0101
Hello,

i need an example where as soon as the server gets updated, the browser should show the updated results, without refreshing. I searched in google, with key words like server push, comet etc without any tutorials.

Thanks

Posted: Mon Jul 09, 2007 9:51 am
by superdezign
Search for 'AJAX.'

Posted: Mon Jul 09, 2007 9:54 am
by feyd
While HTTP Push can, technically be used, it requires the server to manage the tracking. Ajax may be a better option, but it will require Javascript. Although HTTP Push requires support from browsers too.

Posted: Mon Jul 09, 2007 1:10 pm
by shivam0101
ajax examples show past times. Not real time.

Posted: Mon Jul 09, 2007 2:30 pm
by superdezign
shivam0101 wrote:ajax examples show past times. Not real time.
You shouldn't need to copy an example anyway. AJAX can be updated as often as you tell it to be.

Posted: Mon Jul 09, 2007 3:15 pm
by feyd
shivam0101 wrote:ajax examples show past times. Not real time.
Unless you're within, roughly, eyesight of the server, nothing is real-time.

Posted: Mon Jul 09, 2007 9:27 pm
by shivam0101
I downloaded the ajax chat example from the site to solve realtime problem, http://www.zeitoun.net/index.php?2007/0 ... t-with-php and tested, its giving error, stack overflow at line 0. (should i have to download any extra file to make it work?)

Posted: Tue Jul 10, 2007 7:20 am
by superdezign
I wrote:You shouldn't need to copy an example anyway.
If you want something to do what YOU want it to do, write it, don't copy it.