Refresh the page to all in the site on click

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Apr 2008
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

 
0
  #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...
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

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

 
0
  #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 Quick reply to this message  
Join Date: Apr 2008
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

 
0
  #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 Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

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

 
0
  #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 Quick reply to this message  
Join Date: Sep 2007
Posts: 270
Reputation: fatihpiristine has a little shameless behaviour in the past 
Solved Threads: 16
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

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

 
0
  #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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC