Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/6159-synchronization-auto-refresh/
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.
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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.