HOW TO force to load a frameset?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BlackSabbath

    HOW TO force to load a frameset?

    Hi, all
    I try to explain (with my #@^^~ english..., sorry...) :
    I have a page e.g. Product125.htm

    I would that, if a guy call

    http:\\www.MySite.htm\Products\product125.htm

    to force the load of the "normal" frameset to provide a "normal" menu at the
    left of the screen...

    Thanks
    --
    Olivier (enlever les 3X pour la réponse)


  • Vjekoslav Begoviæ

    #2
    Re: HOW TO force to load a frameset?

    Add this code into the HEAD of your page (product125.htm ):

    <script language="JavaS cript">
    if (top == self) {document.locat ion = "urlofmyframese t"}
    </script>

    "BlackSabba th" <son.of.devil@n o.spam.in.hell> wrote in message
    news:3f24f3fb$0 $1884$626a54ce@ news.free.fr...[color=blue]
    > Hi, all
    > I try to explain (with my #@^^~ english..., sorry...) :
    > I have a page e.g. Product125.htm
    >
    > I would that, if a guy call
    >
    > http:\\www.MySite.htm\Products\product125.htm
    >
    > to force the load of the "normal" frameset to provide a "normal" menu at[/color]
    the[color=blue]
    > left of the screen...
    >
    > Thanks
    > --
    > Olivier (enlever les 3X pour la réponse)
    >
    >[/color]


    Comment

    • David Dorward

      #3
      Re: HOW TO force to load a frameset?

      BlackSabbath wrote:

      Please direct your attention towards:

      [color=blue]
      > Now I open the frameset but I would obtain :
      > open the frameset WITH the right page (product125.htm ) in the right
      > frame...[/color]

      You have product125.htm as the value of the src attribute of the <frame> tag
      in the <frameset> document.

      Not using frames is a better solution, they cause many problems.


      --
      David Dorward http://david.us-lot.org/

      Comment

      • BlackSabbath

        #4
        Re: HOW TO force to load a frameset?

        Thank
        I tried
        In the page recherche.htm :
        <head><title> La Fenêtre de Recherche</title>
        <link rel="stylesheet " href="medor.css ">
        <script language="JavaS cript">
        if (top == self) {document.locat ion = "medor.htm?rech erche.htm"}
        </script>
        </head>
        ....
        and medor.htm , the frameset with :

        <html><head><ti tle>Médor</title></head>
        <script language="JavaS cript">
        var pageD = "general.ht m"
        var docu = document.locati on.search
        if (document.locat ion.search != "")
        {pageD =document.locat ion.search.subs tr(1,(document. location.search .length -
        1))}
        </script>
        <frameset cols="30%,*">
        <frame name="menu" src="menu.htm" scrolling="no" frameborder="no ">
        <frame name="detail" src=pageD frameborder="no " >
        <noframes><body ></body></noframes></frameset></html>

        it's failed....
        (so sorry for my poor level in 1/english 2/HTML, it'snt my cup of tea...)

        --
        Olivier (enlever les 3X pour la réponse)
        "Markus Ernst" <derernst@yahoo .com> a écrit dans le message de news:
        3f252000$1_2@ne ws.bluewin.ch.. .[color=blue][color=green]
        > >
        > > Now I open the frameset but I would obtain :
        > > open the frameset WITH the right page (product125.htm ) in the right[/color]
        > frame...[color=green]
        > >[/color]
        >
        > You can try something like:
        >
        > <script language="JavaS cript">
        > if (top == self) {document.locat ion = "urlofmyframese t?produkt125.ht m"}
        > </script>
        >
        > and in the page that loads normally in the frame:
        >
        > <script language="JavaS cript">
        > if (document.locat ion.search != "") {
        > document.locati on =
        > doocument.locat ion.search.subs tr(1,(document. location.search .length - 1))
        > }
        > </script>
        >
        > I have not tested this, it could be buggy, but you see the principle.
        >
        > --
        > Markus
        >
        >[/color]


        Comment

        Working...