I am in a Front Page class. We were doing a frames exercise with a
banner, contents, and main frame. The banner had different pets on the
link bar. Selecting a pet caused the contents frame to display choices
specific to that pet.

We started out with the default choice, dogs, on the banner. The
contents frame had dog-specific choices, starting with 'dog food', and
the main frame had info on dog food.

When we selected 'cats' on the banner frame, the contents frame
displayed cat-specific choices, but the main frame continued to show
the dog food info.

Is there any way to change the document loaded in the main frame when
the contents frame changes?

Thanks

Re: 'cascading' frames by Kevin

Kevin
Thu Nov 18 10:06:49 CST 2004

Sure.Use a JavaScript function. Example:

<script type="text/javascript"><!--
function changeFrames(url1, url2) {
window.parent.framename1.document.location = url1;
window.parent.framename2.document.location = url2;
}
// --></script>

<a href="javascript:changeFrames('http://www.microsoft.com',
'http://www.microsoft.com')">Change Frames</a>
--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"douglas" <drosen@800mcmahan.com> wrote in message
news:d999ee4b.0411180710.207f4848@posting.google.com...
> I am in a Front Page class. We were doing a frames exercise with a
> banner, contents, and main frame. The banner had different pets on the
> link bar. Selecting a pet caused the contents frame to display choices
> specific to that pet.
>
> We started out with the default choice, dogs, on the banner. The
> contents frame had dog-specific choices, starting with 'dog food', and
> the main frame had info on dog food.
>
> When we selected 'cats' on the banner frame, the contents frame
> displayed cat-specific choices, but the main frame continued to show
> the dog food info.
>
> Is there any way to change the document loaded in the main frame when
> the contents frame changes?
>
> Thanks



Re: 'cascading' frames by Murray

Murray
Thu Nov 18 12:13:27 CST 2004

There is a simpler way, Kevin. You make page 2 load page2b into the content
frame when it loads, e.g.,

in page 2 you have (ALERT - Pseudocode) -

<body onLoad="gotoURL(page2b - target='contentFrame')"

--
Murray

"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:O3PtdiYzEHA.3408@tk2msftngp13.phx.gbl...
> Sure.Use a JavaScript function. Example:
>
> <script type="text/javascript"><!--
> function changeFrames(url1, url2) {
> window.parent.framename1.document.location = url1;
> window.parent.framename2.document.location = url2;
> }
> // --></script>
>
> <a href="javascript:changeFrames('http://www.microsoft.com',
> 'http://www.microsoft.com')">Change Frames</a>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
>
> "douglas" <drosen@800mcmahan.com> wrote in message
> news:d999ee4b.0411180710.207f4848@posting.google.com...
>> I am in a Front Page class. We were doing a frames exercise with a
>> banner, contents, and main frame. The banner had different pets on the
>> link bar. Selecting a pet caused the contents frame to display choices
>> specific to that pet.
>>
>> We started out with the default choice, dogs, on the banner. The
>> contents frame had dog-specific choices, starting with 'dog food', and
>> the main frame had info on dog food.
>>
>> When we selected 'cats' on the banner frame, the contents frame
>> displayed cat-specific choices, but the main frame continued to show
>> the dog food info.
>>
>> Is there any way to change the document loaded in the main frame when
>> the contents frame changes?
>>
>> Thanks
>
>



Re: 'cascading' frames by Kevin

Kevin
Thu Nov 18 12:56:43 CST 2004

I suppose what method you would use depends upon your requirements. It
certainly is a different way, though, I'll go along with you there!

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Murray" <forums@HAHAgreat-web-sights.com> wrote in message
news:#VFWKpZzEHA.924@TK2MSFTNGP10.phx.gbl...
> There is a simpler way, Kevin. You make page 2 load page2b into the
content
> frame when it loads, e.g.,
>
> in page 2 you have (ALERT - Pseudocode) -
>
> <body onLoad="gotoURL(page2b - target='contentFrame')"
>
> --
> Murray
>
> "Kevin Spencer" <kspencer@takempis.com> wrote in message
> news:O3PtdiYzEHA.3408@tk2msftngp13.phx.gbl...
> > Sure.Use a JavaScript function. Example:
> >
> > <script type="text/javascript"><!--
> > function changeFrames(url1, url2) {
> > window.parent.framename1.document.location = url1;
> > window.parent.framename2.document.location = url2;
> > }
> > // --></script>
> >
> > <a href="javascript:changeFrames('http://www.microsoft.com',
> > 'http://www.microsoft.com')">Change Frames</a>
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Neither a follower
> > nor a lender be.
> >
> > "douglas" <drosen@800mcmahan.com> wrote in message
> > news:d999ee4b.0411180710.207f4848@posting.google.com...
> >> I am in a Front Page class. We were doing a frames exercise with a
> >> banner, contents, and main frame. The banner had different pets on the
> >> link bar. Selecting a pet caused the contents frame to display choices
> >> specific to that pet.
> >>
> >> We started out with the default choice, dogs, on the banner. The
> >> contents frame had dog-specific choices, starting with 'dog food', and
> >> the main frame had info on dog food.
> >>
> >> When we selected 'cats' on the banner frame, the contents frame
> >> displayed cat-specific choices, but the main frame continued to show
> >> the dog food info.
> >>
> >> Is there any way to change the document loaded in the main frame when
> >> the contents frame changes?
> >>
> >> Thanks
> >
> >
>
>



Re: 'cascading' frames by Murray

Murray
Thu Nov 18 15:35:51 CST 2004

It works beautifully, and it's much simpler than your method.

--
Murray

"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:OtUHaBazEHA.1392@TK2MSFTNGP14.phx.gbl...
>I suppose what method you would use depends upon your requirements. It
> certainly is a different way, though, I'll go along with you there!
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
>
> "Murray" <forums@HAHAgreat-web-sights.com> wrote in message
> news:#VFWKpZzEHA.924@TK2MSFTNGP10.phx.gbl...
>> There is a simpler way, Kevin. You make page 2 load page2b into the
> content
>> frame when it loads, e.g.,
>>
>> in page 2 you have (ALERT - Pseudocode) -
>>
>> <body onLoad="gotoURL(page2b - target='contentFrame')"
>>
>> --
>> Murray
>>
>> "Kevin Spencer" <kspencer@takempis.com> wrote in message
>> news:O3PtdiYzEHA.3408@tk2msftngp13.phx.gbl...
>> > Sure.Use a JavaScript function. Example:
>> >
>> > <script type="text/javascript"><!--
>> > function changeFrames(url1, url2) {
>> > window.parent.framename1.document.location = url1;
>> > window.parent.framename2.document.location = url2;
>> > }
>> > // --></script>
>> >
>> > <a href="javascript:changeFrames('http://www.microsoft.com',
>> > 'http://www.microsoft.com')">Change Frames</a>
>> > --
>> > HTH,
>> > Kevin Spencer
>> > .Net Developer
>> > Microsoft MVP
>> > Neither a follower
>> > nor a lender be.
>> >
>> > "douglas" <drosen@800mcmahan.com> wrote in message
>> > news:d999ee4b.0411180710.207f4848@posting.google.com...
>> >> I am in a Front Page class. We were doing a frames exercise with a
>> >> banner, contents, and main frame. The banner had different pets on the
>> >> link bar. Selecting a pet caused the contents frame to display choices
>> >> specific to that pet.
>> >>
>> >> We started out with the default choice, dogs, on the banner. The
>> >> contents frame had dog-specific choices, starting with 'dog food', and
>> >> the main frame had info on dog food.
>> >>
>> >> When we selected 'cats' on the banner frame, the contents frame
>> >> displayed cat-specific choices, but the main frame continued to show
>> >> the dog food info.
>> >>
>> >> Is there any way to change the document loaded in the main frame when
>> >> the contents frame changes?
>> >>
>> >> Thanks
>> >
>> >
>>
>>
>
>



Re: 'cascading' frames by Kevin

Kevin
Thu Nov 18 16:19:52 CST 2004

Oh YEAH?

--
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Murray" <forums@HAHAgreat-web-sights.com> wrote in message
news:O12xQabzEHA.3880@TK2MSFTNGP10.phx.gbl...
> It works beautifully, and it's much simpler than your method.
>
> --
> Murray
>
> "Kevin Spencer" <kspencer@takempis.com> wrote in message
> news:OtUHaBazEHA.1392@TK2MSFTNGP14.phx.gbl...
> >I suppose what method you would use depends upon your requirements. It
> > certainly is a different way, though, I'll go along with you there!
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Neither a follower
> > nor a lender be.
> >
> > "Murray" <forums@HAHAgreat-web-sights.com> wrote in message
> > news:#VFWKpZzEHA.924@TK2MSFTNGP10.phx.gbl...
> >> There is a simpler way, Kevin. You make page 2 load page2b into the
> > content
> >> frame when it loads, e.g.,
> >>
> >> in page 2 you have (ALERT - Pseudocode) -
> >>
> >> <body onLoad="gotoURL(page2b - target='contentFrame')"
> >>
> >> --
> >> Murray
> >>
> >> "Kevin Spencer" <kspencer@takempis.com> wrote in message
> >> news:O3PtdiYzEHA.3408@tk2msftngp13.phx.gbl...
> >> > Sure.Use a JavaScript function. Example:
> >> >
> >> > <script type="text/javascript"><!--
> >> > function changeFrames(url1, url2) {
> >> > window.parent.framename1.document.location = url1;
> >> > window.parent.framename2.document.location = url2;
> >> > }
> >> > // --></script>
> >> >
> >> > <a href="javascript:changeFrames('http://www.microsoft.com',
> >> > 'http://www.microsoft.com')">Change Frames</a>
> >> > --
> >> > HTH,
> >> > Kevin Spencer
> >> > .Net Developer
> >> > Microsoft MVP
> >> > Neither a follower
> >> > nor a lender be.
> >> >
> >> > "douglas" <drosen@800mcmahan.com> wrote in message
> >> > news:d999ee4b.0411180710.207f4848@posting.google.com...
> >> >> I am in a Front Page class. We were doing a frames exercise with a
> >> >> banner, contents, and main frame. The banner had different pets on
the
> >> >> link bar. Selecting a pet caused the contents frame to display
choices
> >> >> specific to that pet.
> >> >>
> >> >> We started out with the default choice, dogs, on the banner. The
> >> >> contents frame had dog-specific choices, starting with 'dog food',
and
> >> >> the main frame had info on dog food.
> >> >>
> >> >> When we selected 'cats' on the banner frame, the contents frame
> >> >> displayed cat-specific choices, but the main frame continued to show
> >> >> the dog food info.
> >> >>
> >> >> Is there any way to change the document loaded in the main frame
when
> >> >> the contents frame changes?
> >> >>
> >> >> Thanks
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Re: 'cascading' frames by drosen

drosen
Mon Nov 22 14:29:00 CST 2004

Thanks, Murray.
I've been playing with this for a while now, and can't seem to get it
right.

Here's the code I put into the contents frame:

<body onLoad="gotoURL(catfood.htm - target='main')">

This is the original line from Front Page - I left it below the new
code:

<p><a target="main" href="catfood.htm">Cat Food</a></p>


I put the code into the HTML of the 'feline' page, which is the
contents page for the 'Feline' selection in the banner frame.

I've tried several permutations of this, but can't get it to change
the main frame.

Can you help me?

Thanks again

> There is a simpler way, Kevin. You make page 2 load page2b into the content
> frame when it loads, e.g.,
>
> in page 2 you have (ALERT - Pseudocode) -
>
> <body onLoad="gotoURL(page2b - target='contentFrame')"
>
> --
> Murray
>