Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Jumping to a page back: Strange behavior of Firefox and Internet Explorer

13 views
Skip to first unread message

Udo Huebner

unread,
Jan 27, 2012, 9:16:05 AM1/27/12
to
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


Ben Bacarisse

unread,
Jan 27, 2012, 9:44:03 AM1/27/12
to
Udo Huebner <udo.h...@t-online.de> writes:
<snip>
> 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>
--
Ben.

Udo Huebner

unread,
Jan 28, 2012, 6:37:48 AM1/28/12
to
Am 27.01.2012 15:44, schrieb Ben Bacarisse:
> Udo Huebner<udo.h...@t-online.de> writes:
> <snip>
>> 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.

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


MG

unread,
Jan 28, 2012, 7:05:24 AM1/28/12
to

"Udo Huebner" <udo.h...@t-online.de> wrote in message
news:jfubj4$6e5$1...@solani.org...
> 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.

--
MG




Udo Huebner

unread,
Jan 28, 2012, 7:51:48 AM1/28/12
to
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

Udo Huebner

unread,
Jan 28, 2012, 8:02:23 AM1/28/12
to
Am 28.01.2012 13:05, schrieb MG:
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

MG

unread,
Jan 28, 2012, 9:35:25 AM1/28/12
to

"Udo Huebner" <udo.h...@t-online.de> wrote in message
news:jg0rku$q8c$1...@solani.org...
> Am 28.01.2012 13:05, schrieb MG:
>> "Udo Huebner"<udo.h...@t-online.de> wrote in message
>> news:jfubj4$6e5$1...@solani.org...
>>> 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.
>
> 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.

--
MG




Udo Huebner

unread,
Jan 28, 2012, 1:59:27 PM1/28/12
to
Am 28.01.2012 15:35, schrieb MG:
> "Udo Huebner"<udo.h...@t-online.de> wrote in message
> news:jg0rku$q8c$1...@solani.org...
>> Am 28.01.2012 13:05, schrieb MG:
>>> "Udo Huebner"<udo.h...@t-online.de> wrote in message
>>> news:jfubj4$6e5$1...@solani.org...
>>>> Hi NG -
>>>> <snip>
>> 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.

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 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.

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

Regards Udo

Udo Huebner

unread,
Jan 29, 2012, 4:44:36 AM1/29/12
to
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

Ben Bacarisse

unread,
Jan 29, 2012, 9:19:14 AM1/29/12
to
Udo Huebner <udo.h...@t-online.de> writes:
<snip>
> 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.

--
Ben.

Ray_Net

unread,
Jan 29, 2012, 10:52:36 AM1/29/12
to
In article
<0.c3d15ba083f40fa7282b.2012...@bsb.me.uk>,
ben.u...@bsb.me.uk says...
And if you have 100 pages, you take 100 identicals menus and fixed
things.

MVP

unread,
Jan 29, 2012, 12:24:11 PM1/29/12
to
you might want to consider redesigning the who site

php makes consistent content easy


MVP

unread,
Jan 29, 2012, 12:27:05 PM1/29/12
to
My gaming site has over 100 pages, all PHP based, see how the menu is
constant?



http://www.hardcore-games.tk

Ray_Net

unread,
Jan 29, 2012, 3:46:46 PM1/29/12
to
In article <LjfVq.2331$nV5...@newsfe12.iad>, ab...@abuse.net says...
>
> My gaming site has over 100 pages, all PHP based, see how the menu is
> constant?
>
>
>
> http://www.hardcore-games.tk

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.

Neil Gould

unread,
Jan 29, 2012, 4:35:55 PM1/29/12
to
His sig line didn't explain the rationale clearly enough? 8-)

--
Neil



Udo Huebner

unread,
Jan 30, 2012, 5:37:15 AM1/30/12
to
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

MG

unread,
Jan 30, 2012, 6:49:09 AM1/30/12
to

>> 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. ;-)
> 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.

--
MG


dorayme

unread,
Jan 30, 2012, 3:46:02 PM1/30/12
to
In article <jg6043$vp8$1...@dont-email.me>, "MG" <nos...@nospam.com>
wrote:

>
> >> 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.

--
dorayme

Udo Huebner

unread,
Jan 31, 2012, 3:44:58 AM1/31/12
to
Thank you both. I should "try" to learn PHP anyway because you emphasize
that PHP is neat! :-)

Regards Udo

dorayme

unread,
Jan 31, 2012, 5:14:37 AM1/31/12
to
In article <jg89ma$82r$1...@solani.org>,
Udo Huebner <udo.h...@t-online.de> wrote:

...

> >> 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.
> >
>
> ... 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.

--
dorayme

Ben Bacarisse

unread,
Jan 31, 2012, 6:54:53 AM1/31/12
to
dorayme <dor...@optusnet.com.au> writes:

> In article <jg89ma$82r$1...@solani.org>,
> Udo Huebner <udo.h...@t-online.de> wrote:
<snip>
>> ... I should "try" to learn PHP anyway because you emphasize
>> that PHP is neat! :-)
<snip>
> 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"); ?>

I'd suggest using '...' rather than "..." when offering "cut-and-paste"
code since there is only one special case with '...' quotes. Windows
users in particular may fall foul of writing "includes\footer.inc" with
unintended effects. Also (minor point) include is not a function but a
control structure, so the brackets are not needed. The ; is also
optional at the end of PHP section, so the simplest include looks like
this:

<?php include 'includes/footer.inc' ?>

I think it helps to make it all seem slightly less magical.

<snip>
--
Ben.

dorayme

unread,
Jan 31, 2012, 10:16:24 PM1/31/12
to
In article
<0.a024048f8eee4caf9ebc.2012...@bsb.me.uk>,
Ben Bacarisse <ben.u...@bsb.me.uk> wrote:

> dorayme <dor...@optusnet.com.au> writes:
>
> > In article <jg89ma$82r$1...@solani.org>,
> > Udo Huebner <udo.h...@t-online.de> wrote:
> <snip>
> >> ... I should "try" to learn PHP anyway because you emphasize
> >> that PHP is neat! :-)
> <snip>
> > 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"); ?>
>
> I'd suggest using '...' rather than "..." when offering "cut-and-paste"
> code

I was not offering cut and paste code. I was pretending to be human
and assuming that another human reading me would understand that where
I had "..." they would have text, simple as that. But what do I know,
your knowledge of these things is likely greater as you are likely a
real human unlike my cheating self.

> ... the brackets are not needed. The ; is also
> optional at the end of PHP section, so the simplest include looks like
> this:
>
> <?php include 'includes/footer.inc' ?>
>

True. I was looking for a simple something in a url to refer OP to but
gave up and wrote a cheating mini one for him but not before lazily
cutting and pasting the above from an example in some page that was
not too unreasonable.

> I think it helps to make it all seem slightly less magical.
>

Depends on your understanding of magic. Perhaps the pretty and
extravagant

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

would more magical. Perhaps in the world of magic, Ockham's Blooming
rather Ockham's Razor operates.

Perhaps, humans do not grok magic well in spite of all their religious
efforts.

--
dorayme

Udo Huebner

unread,
Feb 2, 2012, 4:54:24 AM2/2/12
to
Am 01.02.2012 04:16, schrieb dorayme:
> In article
> <0.a024048f8eee4caf9ebc.2012...@bsb.me.uk>,
> Ben Bacarisse<ben.u...@bsb.me.uk> wrote:
>
>> dorayme<dor...@optusnet.com.au> writes:
>> <snip>

Hi dorayme and Ben -
thanks for the comments, especially to dorayme for his extensive
informations.
Regards Udo

0 new messages