943,917 Members | Top Members by Rank

Ad:
Jan 7th, 2009
0

Refresh the page to all in the site on click

Expand Post »
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...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
trevata is offline Offline
9 posts
since Apr 2008
Jan 7th, 2009
0

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

I really don't understand what you are trying to achieve here!
But you can refresh the page with this bits of code:
html Syntax (Toggle Plain Text)
  1. <input type="button" value="refresh" onclick="window.location.reload();" />
Featured Poster
Reputation Points: 114
Solved Threads: 138
Posting Shark
essential is offline Offline
973 posts
since Aug 2008
Jan 8th, 2009
0

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

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 ?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
trevata is offline Offline
9 posts
since Apr 2008
Jan 8th, 2009
0

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

Try this one instead
html Syntax (Toggle Plain Text)
  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...
Featured Poster
Reputation Points: 114
Solved Threads: 138
Posting Shark
essential is offline Offline
973 posts
since Aug 2008
Jan 13th, 2009
0

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

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.
Reputation Points: 6
Solved Threads: 19
Posting Whiz in Training
fatihpiristine is offline Offline
283 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: submit once button
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: change font type, font color, font size and bacground color in listbox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC