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: HTML Question from an HTML Virgin!!



Hello

The only way i know of doing it is using java or VB script to access the
frames..
so, to do this in your position:
1. link is clicked - calls a javascript procedure
2. script updates leftframe with the correct page
3. script updates current frame with correct page.

ok
put a script like this in your <HEAD> section of the page with the
link
you want to click:

<script language="JavaScript"><!--
function jump2Frames(left, me) {
parent.leftframe.location.href = left;
self.location.href = me;
}
//--></script>

then use the following for the link:

<a
href="javascript:jump2Frames('http://www.blueteeth.info','http://www.infinitefunk.co.uk')">
Link text </a>

----------/begin code\-----------

I have tested this with the frameset: (index.html)
<html>
<frameset cols="50%,50%">
<frame name="leftframe">
<frame src="main.html"
name="mainframe">
</frameset>
</html>
and then main.html as:

<script language="JavaScript"><!--
function jump2Frames(left, me) {
parent.leftframe.location.href = left;
self.location.href = me;
}
//--></script>

<a
href="javascript:jump2Frames('http://www.blueteeth.info','http://www.infinitefunk.co.uk')">
Link text </a>


----------/end code\-----------


you can ofcourse adapt this to work with any number of frames
parent.leftframe.location.href = left;
/\ frame you want to change!


HTH

if not, sorry!

ALi



Neil Fuller said:
> Quick update on my stupidity after a day at work!
>
> I've actually put the <meta http-equiv="refresh"
content="1; pagename.htm"
> Target="leftframe" />  in the <head> of the page
I'm loading in the Right
> frame in the hope that it will change the page in the left frame.
>
> Point taken about CSS and Javascript - I'm just trying to be quick and
> azy  - My teachers always used to say "more effort required
Fuller!"
>
> Cheers
>
> Neil
> ----- Original Message -----
> From: "Neil Fuller" <neil@fuller-family.com>
> To: <ukha_d@yahoogroups.com>
> Sent: Wednesday, January 21, 2004 5:29 PM
> Subject: [ukha_d] HTML Question from an HTML Virgin!!
>
>
>> Well almost - I've put a very small and uncomplicated site
together a
>> long
> time ago but I want to do something more now - And yes, it is sort of
HA
> related - It's for my weather station.
>>
>> I have a page with 3 frames Top (the site nave bar), Left The
topic nav
> bar) and Right (the content).
>>
>> I want to click a link in the top frame and have a page load in
the
>> right
> frame and an additional page load in the left frame (which contains
more
> links associated with the content in the right frame) - Hope that
makes
> sense!
>>
>> I've tried using something like <meta
http-equiv="refresh" content="1;
> pagename.htm" Target="leftframe" /> for one of the
links in the top frame
>>
>> and any number of combinations(!) but I'm obviously doing
something
>> wrong
> coz it don't work!
>>
>> Could some kind HTML guru tell me if this is possible and, if so,
how?
>>
>> Many thanks
>>
>> Regards
>>
>> Neil
>>
>> [Non-text portions of this message have been removed]
>>
>>
>> UK Home Automation Meet 2004 - BOOK NOW!
>> http://www.ukha2004.com
>>
>> http://www.automatedhome.co.uk
>> Post message: ukha_d@yahoogroups.com
>> Subscribe:  ukha_d-subscribe@yahoogroups.com
>> Unsubscribe:  ukha_d-unsubscribe@yahoogroups.com
>> List owner:  ukha_d-owner@yahoogroups.com
>>
>> Yahoo! Groups Links
>>
>> To visit your group on the web, go to:
>>  http://groups.yahoo.com/group/ukha_d/
>>
>> To unsubscribe from this group, send an email to:
>>  ukha_d-unsubscribe@yahoogroups.com
>>
>> Your use of Yahoo! Groups is subject to:
>>  http://docs.yahoo.com/info/terms/
>>
>>
>>
>
>
>
> UK Home Automation Meet 2004 - BOOK NOW!
> http://www.ukha2004.com
>
> http://www.automatedhome.co.uk
> Post message: ukha_d@yahoogroups.com
> Subscribe:  ukha_d-subscribe@yahoogroups.com
> Unsubscribe:  ukha_d-unsubscribe@yahoogroups.com
> List owner:  ukha_d-owner@yahoogroups.com
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>  http://groups.yahoo.com/group/ukha_d/
>
> To unsubscribe from this group, send an email to:
>  ukha_d-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
>  http://docs.yahoo.com/info/terms/
>
>


UK Home Automation Meet 2004 - BOOK NOW!
http://www.ukha2004.com

http://www.automatedhome.co.uk
Post message: ukha_d@yahoogroups.com
Subscribe:  ukha_d-subscribe@yahoogroups.com
Unsubscribe:  ukha_d-unsubscribe@yahoogroups.com
List owner:  ukha_d-owner@yahoogroups.com


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.