Forum Moderators: open

Message Too Old, No Replies

New page opening in new window instead of current window

does html require an .htm extension to open in same window?

         

mjd22

1:39 pm on May 31, 2004 (gmt 0)

10+ Year Member



Hello, I would appreciate some help to the following problem: I've posted it to the PHP world but maybe it's an html problem.
The basic question that I think I am asking: When linking to another page in html <a> does it have to have an .htm extension to open in the same window? The details are:

I am developing a site in frontpage 2002. I am using shared borders with hyperlinks on the left border. Each hyperlink has a parameter set in the hyperlink dialog box. A sample:

<a href="../../phpdetails.php?id=slides">

These are in the left.htm file that frontpage writes in its hidden _borders directory.

My phpdetails.php file generates content dynamically with the passed parameter. It has the identical header as other pages. During the php section the program uses the parameter passed from left.htm, retrieves data from a mysql table, formats it and displays it. However, it displays the data in a new window without the shared borders.

This is not what I expected as I thought the server would see what looks like a link to just another page. I do not want a new window and I do want the borders. What am I missing!

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>company name</title>
<meta name="Microsoft Theme" content="black-funtime 011, default">
<meta name="Microsoft Border" content="tlb, default">
</head>

<body>

<?php
$id2=$id;

read data
create table
display data
end

MatthewHSE

2:28 pm on May 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I'm understanding correctly, you've got a frames page where the navigation bar is one frame and the content area is another frame. Is that correct?

If so, try setting the target attribute of your navigation bar links to the name of the content frame. In other words, if your content frame has "content" as its name attribute, format your navigation bar links in the following way:

<a href="page.html" target="content">Link</a>

A file extension has nothing to do with a link being opened in the current window, a different frame, a new window, or anything like that.

mjd22

2:58 pm on May 31, 2004 (gmt 0)

10+ Year Member



Thank you for your response. In frontpage, microsoft allows you to use shared borders. I believe it really is files included within a table but the mechanism is shielded.
When I set up the hyperlink, I choose the open in self option to no avail.
If the extensions don't matter then what exactly sets the home page. Index.****? or does it have to be index.htm? Thanks Jean

mjd22

2:59 pm on May 31, 2004 (gmt 0)

10+ Year Member



I may not have been clear. I am not using frames. Jean

bill

2:48 am on Jun 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The .htm or .html file extension has nothing to do with this. As MatthewHSE indicated already it's the target attribute that does this. Remove the target attribute from your link and see what happens.