Re: Random page updates.

Walter Ian Kaye (
Wed, 26 Feb 1997 18:55:40 -0800 (PST)

Date: Wed, 26 Feb 1997 18:55:40 -0800 (PST)
From: Walter Ian Kaye <>
Subject: Re: Random page updates.
In-Reply-To: <>
Message-ID: <>

On Wed, 26 Feb 1997, OpeDog wrote:
> I am making a page for the school I attend and currently the page is very
> under construction.  In fact, I started it anew, yesterday.  Anyway, this
> page contains frames and in the top part of the page is a little
> introduction.  I want this introduction then, to update itself to another
> random "micropage" in another directory.  This probably doesn't make sense
> but I think you get the picture.  So... is there any script or tag I can use
> to take and replace a current HTML document in a frame with another random
> HTML document in a seperate directory?

Well, you can't specify "random" in HTML, so you need a CGI that will pick
a file at random (1: get list of *.html files, 2:count # items, 3: generate
random integer between 1 and that #, 4:get that item from the list) and
return it with a Location: header, preceded by a Window-Name: header having
the name of your frame.

I have not tried this -- it's just off the top of my head. But you get the

Free spellcheck: that's "separate" (think "paragraph" for a mnemonic, maybe,
or imagine a redneck pronouncing "it's a pirate!";)

 PS. Be sure to build a *full* URL for the file.

    Walter Ian Kaye <>     Programmer - Excel, AppleScript,
          Mountain View, CA                         ProTERM, FoxPro, HTML     Musician - Guitarist, Songwriter