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

Discussion in 'HTML' started by Udo Huebner, Jan 27, 2012.

  1. Udo Huebner

    Udo Huebner Guest

    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
    Udo Huebner, Jan 27, 2012
    #1
    1. Advertising

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

    Udo Huebner <> 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.
    Ben Bacarisse, Jan 27, 2012
    #2
    1. Advertising

  3. Udo Huebner

    Udo Huebner Guest

    Am 27.01.2012 15:44, schrieb Ben Bacarisse:
    > Udo Huebner<> 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
    Udo Huebner, Jan 28, 2012
    #3
  4. Udo Huebner

    MG Guest

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

    "Udo Huebner" <> wrote in message
    news:jfubj4$6e5$...
    > 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
    MG, Jan 28, 2012
    #4
  5. Udo Huebner

    Udo Huebner Guest

    Am 28.01.2012 13:05, schrieb MG:
    > "Udo Huebner"<> wrote in message
    > news:jfubj4$6e5$...
    >> 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.


    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, Jan 28, 2012
    #5
  6. Udo Huebner

    Udo Huebner Guest

    Am 28.01.2012 13:05, schrieb MG:
    > "Udo Huebner"<> wrote in message
    > news:jfubj4$6e5$...
    >> 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. 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
    Udo Huebner, Jan 28, 2012
    #6
  7. Udo Huebner

    MG Guest

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

    "Udo Huebner" <> wrote in message
    news:jg0rku$q8c$...
    > Am 28.01.2012 13:05, schrieb MG:
    >> "Udo Huebner"<> wrote in message
    >> news:jfubj4$6e5$...
    >>> 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
    MG, Jan 28, 2012
    #7
  8. Udo Huebner

    Udo Huebner Guest

    Am 28.01.2012 15:35, schrieb MG:
    > "Udo Huebner"<> wrote in message
    > news:jg0rku$q8c$...
    >> Am 28.01.2012 13:05, schrieb MG:
    >>> "Udo Huebner"<> wrote in message
    >>> news:jfubj4$6e5$...
    >>>> 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, Jan 28, 2012
    #8
  9. Udo Huebner

    Udo Huebner Guest

    Re: Jumping to a page back: ... --> solution !?

    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
    Udo Huebner, Jan 29, 2012
    #9
  10. Re: Jumping to a page back: ... --> solution !?

    Udo Huebner <> 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.
    Ben Bacarisse, Jan 29, 2012
    #10
  11. Udo Huebner

    Ray_Net Guest

    Re: Jumping to a page back: ... --> solution !?

    In article
    <>,
    says...
    >
    > Udo Huebner <> 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.


    And if you have 100 pages, you take 100 identicals menus and fixed
    things.
    Ray_Net, Jan 29, 2012
    #11
  12. Udo Huebner

    MVP Guest

    Re: Jumping to a page back: ... --> solution !?

    you might want to consider redesigning the who site

    php makes consistent content easy
    MVP, Jan 29, 2012
    #12
  13. Udo Huebner

    MVP Guest

    Re: Jumping to a page back: ... --> solution !?

    My gaming site has over 100 pages, all PHP based, see how the menu is
    constant?



    http://www.hardcore-games.tk
    MVP, Jan 29, 2012
    #13
  14. Udo Huebner

    Ray_Net Guest

    Re: Jumping to a page back: ... --> solution !?

    In article <LjfVq.2331$>, 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.
    Ray_Net, Jan 29, 2012
    #14
  15. Udo Huebner

    Neil Gould Guest

    Re: Jumping to a page back: ... --> solution !?

    Ray_Net wrote:
    > In article <LjfVq.2331$>, 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.
    >

    His sig line didn't explain the rationale clearly enough? :cool:

    --
    Neil
    Neil Gould, Jan 29, 2012
    #15
  16. Udo Huebner

    Udo Huebner Guest

    Re: Jumping to a page back: ... --> solution !?

    Am 29.01.2012 18:27, schrieb MVP:
    > 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
    Udo Huebner, Jan 30, 2012
    #16
  17. Udo Huebner

    MG Guest

    Re: Jumping to a page back: ... --> solution !?


    >> 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
    MG, Jan 30, 2012
    #17
  18. Udo Huebner

    dorayme Guest

    Re: Jumping to a page back: ... --> solution !?

    In article <jg6043$vp8$>, "MG" <>
    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
    dorayme, Jan 30, 2012
    #18
  19. Udo Huebner

    Udo Huebner Guest

    Re: Jumping to a page back: ... --> solution !?

    Am 30.01.2012 21:46, schrieb dorayme:
    > In article<jg6043$vp8$>, "MG"<>
    > 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.
    >


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

    Regards Udo
    Udo Huebner, Jan 31, 2012
    #19
  20. Udo Huebner

    dorayme Guest

    Re: Jumping to a page back: ... --> solution !?

    In article <jg89ma$82r$>,
    Udo Huebner <> 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
    dorayme, Jan 31, 2012
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lars-Erik Aabech
    Replies:
    4
    Views:
    2,697
    Steven Cheng[MSFT]
    Nov 3, 2005
  2. jalkadir
    Replies:
    3
    Views:
    409
    jalkadir
    Oct 5, 2005
  3. dorayme
    Replies:
    3
    Views:
    397
    dorayme
    May 3, 2008
  4. töff
    Replies:
    3
    Views:
    86
  5. Steve
    Replies:
    2
    Views:
    182
    Thomas 'PointedEars' Lahn
    Jan 15, 2008
Loading...

Share This Page