Jump to content


Photo

Synchronization & Auto refresh


  • Please log in to reply
3 replies to this topic

#1 shivkumart

shivkumart
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 March 2006 - 06:40 AM

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

#2 nikhilthecool

nikhilthecool
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 30 March 2006 - 06:49 AM

I used the meta tag to auto refresh my frame.

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

which refreshes my page every 30 seconds

#3 shivkumart

shivkumart
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 March 2006 - 07:04 AM

[!--quoteo(post=359934:date=Mar 30 2006, 01:49 AM:name=nikhilthecool)--][div class=\'quotetop\']QUOTE(nikhilthecool @ Mar 30 2006, 01:49 AM) View Post[/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.

#4 nikhilthecool

nikhilthecool
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 30 March 2006 - 07:31 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users