Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Refreshing a Page automatically using a Script Code in a Module Upon that ModeulRefreshing a Page automatically using a Script Code in a Module Upon that Modeul's Activated
Previous
 
Next
New Post
5/12/2010 8:33 AM
 
Dear All,
I have a live streaming channel display in the site, and i wanted to announce live braodcast to the users by refreshing the page when live broadcast starts. So i made a module that has only a text saying live braodcast is here, and in that module (which is hidden unless at time of livestreaming) i added a javascript that refreshes the page using this code: setTimeout("location.reload(true);",10000000); just to be able lto refresh the page once, till the live braodcast finishes then i make the module hidden again so i guarantee with the very big time value that it is only refreshed once. However, nothing happens at all, if i am opening the site already i have to press F5 to get that text and see the module visible.. My quesiotn is, how do i push the page through the open sites in browsers already so that users know there is boradcast now without them pressing F5 every few seconds please? Thanks alot
 
New Post
5/12/2010 3:31 PM
 
Given the nature of a web application and the disconnected nature, you will need to do something to poll the server, client side, via javascript to check for updates from the server.

You could use an Ajax timer or similar functionality to do this.

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/12/2010 5:11 PM
 
Hello Mitchel,
Thanks for your answer, but since i am not much of an expert, can you give me an example please? or tell me what to google? do i just search for javascript code to poll the server? i just want this refreshing code to be activated when the module is set to visible...
Would appreciate more guidance atleast about what to search for ...
Thanks alot.
Regards
 
New Post
6/2/2010 7:04 AM
 
Nehal Hammouda wrote:
Dear All,
I have a live streaming channel display in the site, and i wanted to announce live braodcast to the users by refreshing the page when live broadcast starts. So i made a module that has only a text saying live braodcast is here, and in that module (which is hidden unless at time of livestreaming) i added a javascript that refreshes the page using this code: setTimeout("location.reload(true);",10000000); just to be able lto refresh the page once, till the live braodcast finishes then i make the module hidden again so i guarantee with the very big time value that it is only refreshed once. However, nothing happens at all, if i am opening the site already i have to press F5 to get that text and see the module visible.. My quesiotn is, how do i push the page through the open sites in browsers already so that users know there is boradcast now without them pressing F5 every few seconds please? Thanks alot

 We are also looking at doing live broadcast training for our users.  If you don't mind how are you accomplishing the live broadcast channel?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Refreshing a Page automatically using a Script Code in a Module Upon that ModeulRefreshing a Page automatically using a Script Code in a Module Upon that Modeul's Activated


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out