Jumping to a page back: Strange behavior of Firefox and InternetExplorer

U

Udo Huebner

Hi NG -

I am new here and hope to be wellcome.

In the main directory there is a main page index.html, a page
Travels.htm, and a subdirectory Namibia which contains index_nam.html.
index.html calls Travels.htm (besides other links), and from there is
called index_nam.html.

From index_nam.html I want to get back to Travels.htm by clicking the
button
<a href="../Travels.htm" target="_parent"><img style="border:0;" ...

With Firefox 4.0.1 this reference works but with the Internet Explorer
9 (IE9) not. IE9 is doing nothing when clicking.

On top of my pages is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I have no explanation and hope to get a hint from the NG.

Regards Udo
 
B

Ben Bacarisse

Udo Huebner said:
In the main directory there is a main page index.html, a page
Travels.htm, and a subdirectory Namibia which contains index_nam.html.
index.html calls Travels.htm (besides other links), and from there is
called index_nam.html.

From index_nam.html I want to get back to Travels.htm by clicking the
button
<a href="../Travels.htm" target="_parent"><img style="border:0;" ...

Are you using frames? They are generally regarded as an old and bad
idea.
With Firefox 4.0.1 this reference works but with the Internet Explorer
9 (IE9) not. IE9 is doing nothing when clicking.

On top of my pages is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

If you are using frames, you should use the frameset DTD.

Anyhow, none of the this answers your question, but I don't want to
speculate further without a URL I can try out. I.e. post a link to your
site and you'll probably get better answers.

<snip>
 
U

Udo Huebner

Am 27.01.2012 15:44, schrieb Ben Bacarisse:
Are you using frames? They are generally regarded as an old and bad
idea.

Hi Ben -
sorry for the delay.
Concerning frames I even are not able answer. My knowledge is limited to
a bit more than a beginner.
The aim is to show photos from a travel through Namibia in the section
"Reisen" of my homepage "www.uhuebner.de" where "Namibia" will be one
link.
At the moment I am preparing the respective pages at home with the
program JAlbum and its skin Chamaeleon. Therefrom are the code parts I
mentioned. I will try to understand what frames are and if they are
used in the pages created by JAlbum.
<snip>
If you are using frames, you should use the frameset DTD.

Thanks for the hint.
Anyhow, none of the this answers your question, but I don't want to
speculate further without a URL I can try out. I.e. post a link to your
site and you'll probably get better answers.

Well, I will transfer the respective pages to my homepage as fast as
possible and give notice of the result next time.
Thanks again Udo
 
M

MG

Udo Huebner said:
Hi NG -

I am new here and hope to be wellcome.

In the main directory there is a main page index.html, a page
Travels.htm, and a subdirectory Namibia which contains index_nam.html.
index.html calls Travels.htm (besides other links), and from there is
called index_nam.html.

From index_nam.html I want to get back to Travels.htm by clicking the
button
<a href="../Travels.htm" target="_parent"><img style="border:0;" ...

On the Reisen page you have this:
<span style="text-align:center;font-size:30px;font-weight:bold;"><a
name="Reisen">Reisen</a></span>

Notice that the href="index.htm" part is missing.
 
U

Udo Huebner

Am 28.01.2012 13:05, schrieb MG:
On the Reisen page you have this:
<span style="text-align:center;font-size:30px;font-weight:bold;"><a
name="Reisen">Reisen</a></span>

Notice that the href="index.htm" part is missing.

Nice, you obviosly looked at my homepage. :)
The mentioned line indeed contains the part <a name="Reisen"> ... /a>
which is a wrong relic of my former programming and should be taken out!
The program line has to write only the text Reisen in big letters and
reads correctly:

<span
style="text-align:center;font-size:30px;font-weight:bold;">Reisen</span>

No reference is necessary there. The references are given above.
Thanks and regards Udo
 
U

Udo Huebner

Am 28.01.2012 13:05, schrieb MG:
On the Reisen page you have this:
<span style="text-align:center;font-size:30px;font-weight:bold;"><a
name="Reisen">Reisen</a></span>

Notice that the href="index.htm" part is missing.

Sorry, I have to add some:
The page Reisen.htm contains links to the different travels. I am
preparing such a travel link for Namibia to be included in Reisen.htm.
At home I am testing this page Namibia.htm if it leads correctly back
to Reisen.htm which does work with Firefox but not with IE9.
I hope I could clarify the problem a bit more.
Regards Udo
 
M

MG

Udo Huebner said:
Am 28.01.2012 13:05, schrieb MG:

Sorry, I have to add some:
The page Reisen.htm contains links to the different travels.

There are no links to the different travels. For example, there is no link
to Ägypten.

I am
preparing such a travel link for Namibia to be included in Reisen.htm.
At home I am testing this page Namibia.htm if it leads correctly back
to Reisen.htm which does work with Firefox but not with IE9.
I hope I could clarify the problem a bit more.

I would need to see the Namibia.htm page to see what is wrong.
 
U

Udo Huebner

Am 28.01.2012 15:35, schrieb MG:
There are no links to the different travels. For example, there is no link
to Ägypten.

Oh, of course, you are right and meanwhile I am myself confused.
My homepage was started with the hope to insert the pertinent links
to travels with many photos which I have but I didn't do this up to
now. The Namibia page should be the first to be installed.
That is why there are no links in Reisen.htm to Photo pages. :-(
I would need to see the Namibia.htm page to see what is wrong.

Yes, I will upload the pages as fast as possible.

Regards Udo
 
U

Udo Huebner

Am 27.01.2012 15:16, schrieb Udo Huebner:
Hi NG -
...
With Firefox 4.0.1 this reference works but with the Internet Explorer
9 (IE9) not. IE9 is doing nothing when clicking.
...
I have no explanation and hope to get a hint from the NG.

Hi Ben and MG -

I loaded my files up to my homepage (uhuebner.de) and the problem
disapeared - at least in my homepage. :-O

At home my tests still show the problem that IE9 does not react when
trying to go back to the upper page Reisen.htm.

My other similar photo gallery Kakteen.htm does not show the problem.
It was done with an older version of the chamaeleon skin of JAlbum.
Thus, I have the possibility to compare and probably find out the
reason.

To Ben: Up to now no frames are used in my pages. You recommended not
to use frames. What do you take when only a small part of the page
window shall be changed? Do you let reload the whole page?

Regards to you both Udo
 
B

Ben Bacarisse

Udo Huebner said:
To Ben: Up to now no frames are used in my pages. You recommended not
to use frames. What do you take when only a small part of the page
window shall be changed? Do you let reload the whole page?

Yes.
 
N

Neil Gould

Ray_Net said:
If the menu is constant why did you oblige us to reload it when
viewing every page ... This menu is downloaded 100 times if you look
at 100 pages.
His sig line didn't explain the rationale clearly enough? :cool:
 
M

MG

The problem is that up to know my knowledge is rather limited. From
PHP I only know the name but I should learn. ;-)
Regards Udo

If you don't know PHP there is another way.

Create a page that will be a template for all your pages. This template will
have all the html that is common to all pages. Usually header, menu and
footer. Maybe some other stuff too. Save this page as template.html. Run
this file through the validator to make sure there are no errors.

When you create a new page, make a copy of template.html and add the content
for the new page.

The important thing is to use tokens in your template.

For example, enclose your menu in tokens like this:

<!-- START OF MENU -->
.....menu html comes here
<!-- END OF MENU -->
If you need to change the menu across all your pages you use a search and
replace utility that will find all content between the tokens and replace it
with new content. This search and replace utility must be able to work
across multiple files.

Not as neat as PHP, but it works.
 
D

dorayme

[QUOTE=""MG said:
The problem is that up to know my knowledge is rather limited. From
PHP I only know the name but I should learn.

If you don't know PHP there is another way.

Create a page that will be a template for all your pages. This template will
have all the html that is common to all pages.
....
If you need to change the menu across all your pages you use a search and
replace utility that will find all content between the tokens and replace it
with new content. This search and replace utility must be able to work
across multiple files.

Not as neat as PHP, but it works.[/QUOTE]

A third way is to use Server Side Includes. But the S&R you describe
is the least frightening.
 
U

Udo Huebner

Am 30.01.2012 21:46, schrieb dorayme:
[QUOTE=""MG said:
My gaming site has over 100 pages, all PHP based, see how the menu is
constant?



http://www.hardcore-games.tk

The problem is that up to know my knowledge is rather limited. From
PHP I only know the name but I should learn.

If you don't know PHP there is another way.

Create a page that will be a template for all your pages. This template will
have all the html that is common to all pages.
...
If you need to change the menu across all your pages you use a search and
replace utility that will find all content between the tokens and replace it
with new content. This search and replace utility must be able to work
across multiple files.

Not as neat as PHP, but it works.

A third way is to use Server Side Includes. But the S&R you describe
is the least frightening.
[/QUOTE]

Thank you both. I should "try" to learn PHP anyway because you emphasize
that PHP is neat! :)

Regards Udo
 
D

dorayme

....
... I should "try" to learn PHP anyway because you emphasize
that PHP is neat! :)

You don't really need to learn much PHP to use its includes functions,
you *can* treat it as a magic wand that does certain things if you get
certain simple things right. If your server supports php, the wand
will work straight off if you name any html files that have includes
in them with a .php end, it is the signal for the server to read the
programming instructions within and run them. Instead of index.html,
you would have index.php.

If you have a footer, that is the same for all pages, put the markup
for it in a separate text file and save this file with any ending you
like, .inc is popular. Create a new folder and call this whatever you
like, "includes" is sensible. Put the folder on your server, just as
you might put any folder like "images".

In all your html files (even though they might end in .php) at the
point at which you would normally have something like

<ul class="footer">
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ul>

you instead put

<?php include ("includes/footer.inc"); ?>


The above ul markup above goes into the text file footer.inc in the
folder called includes.

This is particularly useful when you have a complicated bit of markup,
think drop-down menus. Changing the one file in the folder includes
ensures all your pages register the change.

What happens is this, the server sees any file that ends in .php and
checks it out for php instructions. In the case of the above include,
it fetches the content of the text file footer.inc in the folder
"includes" and dumps it in the html page at the point where the
include statement occurs. When it gets to the visitor's browser it
looks like a normal html page with lots of markup, what you see in the
View Source.

If all your html files are on the same level as the includes folder,
the server will find it and Bob should be your uncle. Me, I use a
global reference so that all my includes can be found from wherever,
but keep it simple to start off.
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top