Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Command to refresh
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
DukeOfMarshall  
View profile  
 More options May 18 2012, 10:29 am
From: DukeOfMarshall <dukeofmarsh...@gmail.com>
Date: Fri, 18 May 2012 07:29:49 -0700 (PDT)
Local: Fri, May 18 2012 10:29 am
Subject: Command to refresh
This may be a weird request, but is there anyway that I can send out a
command through my Frozen Mountain channel to refresh every page that
is currently connected to that channel?

Here's my situation:
I've currently got an application up and running and I use frozen
mountain to update information in real time on the receiving pages.
However, since this app is currently in use, I would like to send out
a command from the publishing page so that all the receiving pages
will refresh with the new code without me having to go around to all
the computers myself and refreshing them manually.

Thanks in advance for your help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Venema  
View profile  
 More options May 18 2012, 10:55 am
From: Anton Venema <anton.ven...@frozenmountain.com>
Date: Fri, 18 May 2012 07:55:07 -0700
Local: Fri, May 18 2012 10:55 am
Subject: Re: Command to refresh

The answer is yes, but you would have to code it into your app.

client.subscribe({
    channel: '/mychannel',
    onReceive: function(e) {
        if (e.data.command == 'reload') {
            window.location.reload();
        }
    }

});

To force a refresh, just publish { command: 'reload' } to /mychannel.

Anton VenemaFrozen Mountain Software
604-227-2458 (Canada)
919-300-5520 (United States)
888-379-6686 (888-FRZN-MTN)
www.frozenmountain.com (http://www.frozenmountain.com/)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »