The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT HTML Help


  • To: ukha_d@xxxxxxx
  • Subject: Re: OT HTML Help
  • From: "Graham Howe" <graham@xxxxxxx>
  • Date: Wed, 11 Jun 2003 11:06:35 -0000
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

--- In ukha_d@xxxxxxx, "Alex Monaghan" <ha@m...> wrote:
> How can I update multiple frames by a single click ?
>
> I'm wanting to have a menu frame and a content frame, with title
frame
> etc... I'd like to be able to reload content, title and possibly
menu frames
> with a single mouse click.
>
> Is this easily do-able ?
>
> PS I know frames suck... but this is for a quick mock-up

You can do this with client side scripting (usually JavaScript). Here
is an example function to set the url for three frames:

<!-- hide script from old browsers
<SCRIPT LANGUAGE="JavaScript">

function load3frames()
{
parent.frames[1].location.href = 'url1.htm';
parent.frames[2].location.href = 'url2.htm';
parent.frames[3].location.href = 'url3.htm';
}
</SCRIPT>
-->

You could then assign this function to the OnClick event of a link or
button. With a bit of playing around you can pass the frame numbers
and URLs through the OnClick event too so that different frame
contents are loaded according to button/link clicked.

HTH

Graham



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.