Frames Pages - Target Frames - Clearing certian frames

P

PCLIVE

I'm using Frames pages. I have a 3-frame page. When I click links in frame
1, my target frame is frame 2. Links in frame 2 are targeted for frame 3.

I'd like to know if there is a simple way to have frame 3 cleared anytime a
link in frame 1 is clicked.

Is this possible?
Thanks,
Paul
 
J

Jim Buyens

-----Original Message-----
I'm using Frames pages. I have a 3-frame page. When I
click links in frame 1, my target frame is frame 2.
Links in frame 2 are targeted for frame 3.

I'd like to know if there is a simple way to have
frame 3 cleared anytime a link in frame 1 is clicked.

This requires updating two frames from one hyperlink: the
page you want in frame 2, plus a blank page in frame 3.
And that, in turn, requries coding a JavaScript link such
as the following (but all on one line):

<a href="javascript:
parent.frames.frame2.location='frame2page.htm';
parent.frames.frame3.location='blank.htm'">

Of course, you'll need to adjust the frame names if
they're other than frame2 and frame 3, and the page URLs
as well.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
P

PCLIVE

This seems like it will work, but I have another item to factor in. I'm
using a hotspot as a link (see my current non-java link below).

<area href="frame1page.htm" target="frame2" coords="107, 91, 27"
shape="circle">

How can I fit your suggested code into this?

Thanks,
Paul
 
J

Jim Buyens

PCLIVE said:
This seems like it will work, but I have another item to factor in. I'm
using a hotspot as a link (see my current non-java link below).

<area href="frame1page.htm" target="frame2" coords="107, 91, 27"
shape="circle">

How can I fit your suggested code into this?

Ah, the ubiquitous additional item. Well:

<area href="javascript:
parent.frames.frame2.location='frame2page.htm';
parent.frames.frame3.location='blank.htm'," coords="107, 91, 27" shape="circle">

again, all on one line.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
P

PCLIVE

Ok,

I got it working. But there seemed to be a comma in your last
recommendation that was preventing my attempts from working. In practicing
with your suggestion, I also learned that I needed to include a space after
the semi-colon and the colon.

Thanks for your help and for the learning experience.
This is the final code that I eventually ended up with.
<area href="javascript: parent.frames.top1.location='Copy.htm';
parent.frames.top2.location='blank.htm'" coords="46, 90, 27" shape="circle"
target="top1">

Thanks again,
Paul
 
J

Jim Buyens

PCLIVE said:
Ok,

I got it working. But there seemed to be a comma in your last
recommendation that was preventing my attempts from working. In practicing
with your suggestion, I also learned that I needed to include a space after
the semi-colon and the colon.

Thanks for your help and for the learning experience.
This is the final code that I eventually ended up with.
<area href="javascript: parent.frames.top1.location='Copy.htm';
parent.frames.top2.location='blank.htm'" coords="46, 90, 27" shape="circle"
target="top1">

Yes, I see there was a typo on line 3, right after 'blank.htm'. The correct code is:

<area href="javascript:
parent.frames.frame2.location='frame2page.htm';
parent.frames.frame3.location='blank.htm';" coords="107, 91, 27" shape="circle">

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top