RSS Forums RSS

Refresh the page to all in the site on click

Please support our JavaScript / DHTML / AJAX advertiser: Programming Forums
Reply
Posts: 9
Reputation: trevata is an unknown quantity at this point 
Solved Threads: 0
trevata trevata is offline Offline
Newbie Poster

Refresh the page to all in the site on click

  #1  
Jan 7th, 2009
Hi there!
Is there a way to refresh the page to all users when one of them clicks on a button like in Cent Auctions ?
For example:
There is a button refresh and when I click it the page refreshes to all...
AddThis Social Bookmark Button
Reply With Quote  
Posts: 730
Reputation: essential is on a distinguished road 
Solved Threads: 104
Featured Poster
Featured Coder
essential's Avatar
essential essential is online now Online
Master Poster

Re: Refresh the page to all in the site on click

  #2  
Jan 7th, 2009
I really don't understand what you are trying to achieve here!
But you can refresh the page with this bits of code:
  1. <input type="button" value="refresh" onclick="window.location.reload();" />
Reply With Quote  
Posts: 9
Reputation: trevata is an unknown quantity at this point 
Solved Threads: 0
trevata trevata is offline Offline
Newbie Poster

Re: Refresh the page to all in the site on click

  #3  
Jan 8th, 2009
I'll try to explain it.
We have a button "Refresh" (For example), when someone clicks that button the page refreshes but not only to him, but to all users on that page. Is that more cler ?
Reply With Quote  
Posts: 730
Reputation: essential is on a distinguished road 
Solved Threads: 104
Featured Poster
Featured Coder
essential's Avatar
essential essential is online now Online
Master Poster

Re: Refresh the page to all in the site on click

  #4  
Jan 8th, 2009
Try this one instead
  1. <input type="button" value="refresh" onclick="window.opener.refresh();" />
to note that this will only work with windows that are in the same domain...
Reply With Quote  
Posts: 256
Reputation: fatihpiristine has a little shameless behaviour in the past 
Solved Threads: 14
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

Re: Refresh the page to all in the site on click

  #5  
Jan 13th, 2009
try to send a http request to server periodically and check the version number. if the version on client side less then the server side, refresh the page... dont forget to increase the version each time.
Do a favour, leave me alone
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 1198 | Replies: 4 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:14 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC