Learn More





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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameRefresh iFrameRefresh iFrame
New Post
4/28/2015 3:17 AM

Hi, is there a way to use the javascript component in the iframe module to refresh the iframe every couple seconds.

I've tried  window.frames["myIframe"].location.reload(); to no avail.



New Post
5/3/2015 9:41 AM
document.getElementById('myIframe').contentWindow.location.reload(); should do it - though if it's javascript within the iframe then just location.reload

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
New Post
5/4/2015 1:57 AM
Thanks for the post, I used

setTimeout(function(){window.location.reload(1);}, 5000)

which seems to work for me for the moment.

it refreshes the whole page with all the iframes, i'd prefer a method where it would leave the global page static and only refresh the embedded iframes.

I guess the other benefit is that the site(login) would remain active and not log me out.

regards Warren
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameRefresh iFrameRefresh iFrame

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?