Forum Moderators: open

Message Too Old, No Replies

Linked page opening in new window instead of current window

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

         

mjd22

1:43 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 and HTML worlds but maybe it's a frontpage 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

pageoneresults

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

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



When linking to another page in html <a> does it have to have an .htm extension to open in the same window?

File extension has no bearing on whether the page opens in a new window or not. It sounds like there is a target attribute somewhere on those

<a href="" target="">
. Search those links and see if that target attribute is there, if so, delete it. That is what invoking a new window.

mjd22

3:03 pm on May 31, 2004 (gmt 0)

10+ Year Member



Thank you for your response. I've set the targets at _self, taken all targets out, everything I can think of with targets. I believe targets deal with frame pages and these are not frames. They are shared borders. I've tried targeting bookmarks. That didn't work either. Thanks Jean

pageoneresults

3:24 pm on May 31, 2004 (gmt 0)

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



I've set the targets at _self

There would be no need to have targets on the links. I've never used the shared_borders feature of FP but I'd be willing to bet that something is going on with the shared_borders feature and the FP extensions. This issue with new windows opening may be coming from the FP extensions.

First thing I would do is eliminate all of the target attributes. Since you are not in a framed environment, nor using

<iframe>
s, they would not be required.

mjd22

6:29 pm on May 31, 2004 (gmt 0)

10+ Year Member



I've now narrowed it down to FP. I've put this thing together in about 4 or 5 ways and it responds the same way. In a very obscure place, under properties on the icon for the home page in the navigation view there is an error message:

Cannot run the FrontPage Server Extensions on this page: "phpdetails.php"

This shows up whether I use FP's include method or the SSI or the include tutorial posted a few weeks ago on FP includes.

SO..how does one get around this error message? What is it really saying. I think I'll start a new post on this question.