Jump to content

Archived

This topic is now archived and is closed to further replies.

shivkumart

Synchronization & Auto refresh

Recommended Posts

Hi all,
I am creating a website using PHP/MYSQL.
This website is something in which users submit stories. Other users can read the stories submitted by others.
They may tag a story that they like.
I have a problem with this.
If an user tags a story, the count gets incremented in his page, but if a simultaneous user is online in another system, he can't see the updated count value unless he refreshes his browser.
I was just wondering whether there is someway of making it dynamic, where the other user's window automatically updates the count value then and there, wherein he doesnt need to refresh the browser.
Thanks,
Shiva

Share this post


Link to post
Share on other sites
[!--quoteo(post=359934:date=Mar 30 2006, 01:49 AM:name=nikhilthecool)--][div class=\'quotetop\']QUOTE(nikhilthecool @ Mar 30 2006, 01:49 AM) [snapback]359934[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I used the meta tag to auto refresh my frame.

<meta http-equiv="refresh" content="30">

which refreshes my page every 30 seconds
[/quote]


Yeah I can use that, but it has to be faster than that. It should be updated instantly. I can put the refresh rate = 1, but thats too much refreshing. I am looking for some other solution. Thanks for your help.

Share this post


Link to post
Share on other sites
even i need to modify my application.

instead of using auto-refresh i was thinking of triggering an event which calls the refresh function.

the auto-refresh looks very irritating to the user's eye, especially with high refresh rates.

if any1 has a better solution, do let me know too.

thanks.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.