Solved

Automatically Loading Pages

Posted on 1997-03-01
1
199 Views
Last Modified: 2013-12-25
I'm developing an intranet application where the user has no access to the computer, so I need a way of loading pages automatically.  I know of the client pull command, but the problem is I don't own the pages I want to load.  Therefore, I can't edit the pages.  My goal is load approx. 10 unowned,preselected pages, one every ten seconds, without user input.  Then loop back to the first preselected page and continue indefinitly.   All I want the user to see on the screen is the loaded web page.  Is there a way to do this?  Can I use Java scrip? If so how?

0
Comment
Question by:missle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
pc012197 earned 150 total points
ID: 1853914
There are several ways to do this in JavaScript. In any case you'll have to load a starting page, which you have to write yourself. That page would contain Javascript code to cycle through the other documents.
You could display the other documents in a new browser window, which would be opened by the Javascript program. Or you could split a window into two frames, one of these would contain only your Javascript code (and could therefore be quite small), the other frame would display the pages.

An example:
<html><head><title>startpage</title>
<script>

function initArray() {
      this.length = initArray.arguments.length
      for (var i = 0; i < this.length; i++)
      this[i+1] = initArray.arguments[i]
   }

newWin=0;
current=1;
pages=initArray("your://first/url","your://second/url");

function startCycle() {
  newWin=window.open(pages[1], "newWindow" );
  window.setTimeout("doCycle();",10000);
}

function doCycle() {
  newWin.close();
  current = (current % pages.length) + 1;
  newWin=window.open( pages[current], "newWindow" );
  window.setTimeout("doCycle();", 10000);
}
</script>
</head><body onLoad="startCycle();">
This is just a dummy page.
</body>
</html>

I haven't tried this, so there may be a few bugs, but in principle it can be done like this.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding a countdown to HTA 12 114
Intranet Site for Medical Practice 7 64
MS Access VBA How To Properly Set Up A multipart/related HTTP Request 13 142
change site header 8 32
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question