target keeps coming back - why

J

Jim S

In a frameset page I have the 'command' target="right_frame". If I delete
it, Frontpage puts it back when I save the page. Why?

It may help to know that the page which goes in the left frame includes
<base target="right_frame"> in its header. Is this the reason?
 
M

Murray

Well, that <base> tag will force all links to open in the frame named
"right_frame". No further code would be required to give you this headache.
 
J

Jim S

Well, that <base> tag will force all links to open in the frame named
"right_frame". No further code would be required to give you this headache.

Exactly. So how do I prevent FP from constantly putting it back without so
much as a by your leave?
 
T

Thomas A. Rowe

Remove the base target from all of your pages.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
M

Murray

No. Why?

It's frames that are the joke.

You can do the removal using a sitewide search and replace....
 
J

Jim S

No. Why?

It's frames that are the joke.

You can do the removal using a sitewide search and replace....

Then the link would not open in the right frame, or would it?
 
M

Murray

What is it you want to happen? Do you want links to open in the right
frame? Then either use the <base> tag in the page with the links, or use
the target attribute for each individual link. Either way will ensure that
your links open in the right frame.

But - frames are rarely the optimal choice for your site's layout. The
reason for using or not using frames should be based on a) your site's
needs, and b) your willingness to accept the potential problems that frames
can create for you as developer and maintainer of the site and for your
visitors as casual users of the site.

I am down on frames because I believe that they create many more problems
than they solve.
Judging from the posts here, and the kinds of problems that are described,
the kind of person most likely to elect to use frames is also the kind of
person most likely ill-prepared fo solve the ensuing problems when they
arise. If you feel a) that you understand the problems and b) that you are
prepared to handle them when they occur, and c) that you have a need to use
frames, then by all means use them.

As far as I know, the most comprehensive discussions of frames and their
potential problems can be found on these two links -

http://apptools.com/rants/framesevil.php
http://www.tjkdesign.com/articles/frames/
 
J

Jim S

What is it you want to happen? Do you want links to open in the right
frame? Then either use the <base> tag in the page with the links, or use
the target attribute for each individual link. Either way will ensure that
your links open in the right frame.

But - frames are rarely the optimal choice for your site's layout. The
reason for using or not using frames should be based on a) your site's
needs, and b) your willingness to accept the potential problems that frames
can create for you as developer and maintainer of the site and for your
visitors as casual users of the site.

I am down on frames because I believe that they create many more problems
than they solve.
Judging from the posts here, and the kinds of problems that are described,
the kind of person most likely to elect to use frames is also the kind of
person most likely ill-prepared fo solve the ensuing problems when they
arise. If you feel a) that you understand the problems and b) that you are
prepared to handle them when they occur, and c) that you have a need to use
frames, then by all means use them.

As far as I know, the most comprehensive discussions of frames and their
potential problems can be found on these two links -

http://apptools.com/rants/framesevil.php
http://www.tjkdesign.com/articles/frames/

Thanks for your time Murray.
I think I understand the problems of using frames and would, if I was able,
use other methods to achieve what I desire.
If you glance at my site, particularly Local History, you will see that I
need to create a means of moving from a link to a picture. I started with a
page of thumbnails where clicking produced a new window, where a link would
take the user blindly forward or he/she had to return to the original
thumbnails to click on another. I did not like the too-ing and fro-ing and
opted for the thumbnail and picture in a frame that you now see.
SSi? has been suggested, but my server does not support this so I think I
may be stuck with using frames for now.

The original query was more about *why* FP was inserting a command that I
feel I don't need. From what you say: I can have the 'target' command in
'either' page so I can delete the base-target command in the thumbnail page
while leaving a simple target command in the frames page BUT if I leave the
base-target command FP will install it in the frames page?
 
M

Murray

You can either use the <base> tag, or the target attribute to target *all*
links on the page, or the specific link, respectively. In the case of the
former, a single tag affects all links. In the case of the latter that
single atribute affects only the anchor tag containing it. In either event,
the tag/attribute MUST be in the page with the link.

Now - if I am reading your posts correctly, you remove code from the page
being linked TO? And FP puts that code back? I gotta see this to believe
it....
 
J

Jim S

You can either use the <base> tag, or the target attribute to target *all*
links on the page, or the specific link, respectively. In the case of the
former, a single tag affects all links. In the case of the latter that
single atribute affects only the anchor tag containing it. In either event,
the tag/attribute MUST be in the page with the link.

Now - if I am reading your posts correctly, you remove code from the page
being linked TO? And FP puts that code back? I gotta see this to believe
it....

Why would I lie?
As a test I went to the thumbnails page and removed the <base> tag then
removed the <target> tag in the matching frames page. It did not return!
I had of course to put it back in one or the other. Ah but which?
 
M

Murray

Why would I lie?
As a test I went to the thumbnails page and removed the <base> tag then
removed the <target> tag in the matching frames page. It did not return!

QED. 8)
I had of course to put it back in one or the other. Ah but which?

As stated several times - the page with the links is the one that needs the
target adjustment.
 
J

Jim S

QED. 8)


As stated several times - the page with the links is the one that needs the
target adjustment.

But you see that puts it back in the frames page ....... aw forget it.
 
M

Murray

Well, of course. If you edit a page, the page you edited will contain your
edits. Where is the disconnect?
 

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