forcing URL in frame??

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

    forcing URL in frame??

    Hello, can anyone help me out?? Maybe its a bit complicated, maybe not :)
    I'll try to explain. Am not a programmer so have patience!

    [SITUATION]
    I have a website whose url looks like this:


    Shortly I have a registered a domain name:

    Eén softwarepakket voor al uw bedrijfsprocessen. MyBusiness automatiseert en optimaliseert over de volledige breedte van uw organisatie.


    .... that is now "hosted" by another provider: the only thing it does is
    sending a visitor of www.mybusiness.nl to
    http://home.provider.nl/~mybusiness/ (this is called "webforward ing" or
    routing)

    You don't see that you are sent to the actual URL of my website;
    www.mybusiness.nl remains displayed in the URL-bar. This is achieved because
    www.mybusiness.nl displays http://home.provider.nl/~mybusiness/ in a frame:

    <HTML>
    <HEAD>
    ....
    </HEAD>

    <FRAMESET CELLPADDING="0" CELLSPACING="0" BORDER="0" ROWS="100%,*">
    <FRAME SRC="http://home.provider.n l/~mybusiness/" NAME="qwerty" NORESIZE
    SCROLLING="AUTO ">
    <FRAME SRC="/empty.html" NORESIZE>
    </FRAMESET>
    </HTML>

    Because my site also has frames, I had to change all "target=_to p" to
    "target=qwe rty" to make internal navigation work correctly while being at
    www.mybusiness.nl . That was no problem.

    [2 - PROBLEM]
    My problem is to rewrite the javascript I made (well.. the usual
    copy/paste/adapt actions) for all content pages. When found by a search
    engine and clicked, the correct frames are forced around that "orphaned"
    page. It works as long as you navigate at
    http://home.provider.nl/~mybusiness/ (not via www.mybusiness.nl ).

    NOW I guess the script needs to send you first to www.mybusiness.nl and THEN
    force the found page+parent frame(s) in the new "qwerty" top-frame. How the
    hell should I do that? A tried some things, but cant get it right.

    The javascript I have now and needs to be changed looks like this (with
    onLoad="framech eck()" in body tag) :

    <SCRIPT LANGUAGE="JavaS cript">
    <!--
    function framecheck()
    {var parentframe = 'page.html';
    // check if orphan
    if (parent.locatio n.href == self.location.h ref)
    {var current = window.self.loc ation.pathname;
    window.location .replace (parentframe + '?' + current);
    }
    };
    //-->
    </SCRIPT>

    Anyone an idea how to change it??

    Many thnx in andvance for any suggestion..

    PV



  • Ivo

    #2
    Re: forcing URL in frame??

    "petev" <petervar@12mov e.nl> wrote in message
    news:bl1m5d$ajq $1@reader1.tisc ali.nl...[color=blue]
    > Hello, can anyone help me out?? Maybe its a bit complicated, maybe not :)
    > I'll try to explain. Am not a programmer so have patience!
    >
    > [SITUATION]
    > I have a website whose url looks like this:
    > http://home.provider.nl/~mybusiness/
    >
    > Shortly I have a registered a domain name:
    >
    > http://www.mybusiness.nl
    >
    > ... that is now "hosted" by another provider: the only thing it does is
    > sending a visitor of www.mybusiness.nl to
    > http://home.provider.nl/~mybusiness/ (this is called "webforward ing" or
    > routing)
    > Because my site also has frames, I had to change all "target=_to p" to
    > "target=qwe rty" to make internal navigation work correctly while being at
    > www.mybusiness.nl . That was no problem.
    >[/color]
    The problem is www.mybusiness.nl and http://provider.nl/ are different
    domains, and browser security prevent socalled cross-domain scripting. There
    are workarounds, since you control what is happening on pages on both sides,
    but it gets nasty quickly. It is very good to be aware of problems you run
    into when search engines pick up your unframed pages, but then to force the
    correct, even nested frames in another domain, is no sinecure.
    Besides all that, frame-forcing scripts will prevent your pages from
    participating in Google Images Search to name one good example of the use of
    frames. I would reconsider using frames alltogether, at least for the
    regular pages, and accept the provider.nl in the address- and statusbars for
    the time being (that is:until you move to mybusiness.nl permanently).
    HTH
    Ivo


    Comment

    • petev

      #3
      Re: forcing URL in frame??


      "Ivo" <no@thank.you > wrote in message
      news:3f746016$0 $35677$1b62eedf @news.wanadoo.n l...[color=blue]
      > "petev" <petervar@12mov e.nl> wrote in message
      > news:bl1m5d$ajq $1@reader1.tisc ali.nl...[color=green]
      > > Hello, can anyone help me out?? Maybe its a bit complicated, maybe not[/color][/color]
      :)[color=blue][color=green]
      > > I'll try to explain. Am not a programmer so have patience!
      > >
      > > [SITUATION]
      > > I have a website whose url looks like this:
      > > http://home.provider.nl/~mybusiness/
      > >
      > > Shortly I have a registered a domain name:
      > >
      > > http://www.mybusiness.nl
      > >
      > > ... that is now "hosted" by another provider: the only thing it does is
      > > sending a visitor of www.mybusiness.nl to
      > > http://home.provider.nl/~mybusiness/ (this is called "webforward ing" or
      > > routing)
      > > Because my site also has frames, I had to change all "target=_to p" to
      > > "target=qwe rty" to make internal navigation work correctly while being[/color][/color]
      at[color=blue][color=green]
      > > www.mybusiness.nl . That was no problem.
      > >[/color]
      > The problem is www.mybusiness.nl and http://provider.nl/ are different
      > domains, and browser security prevent socalled cross-domain scripting.[/color]
      There[color=blue]
      > are workarounds, since you control what is happening on pages on both[/color]
      sides,[color=blue]
      > but it gets nasty quickly. It is very good to be aware of problems you run
      > into when search engines pick up your unframed pages, but then to force[/color]
      the[color=blue]
      > correct, even nested frames in another domain, is no sinecure.
      > Besides all that, frame-forcing scripts will prevent your pages from
      > participating in Google Images Search to name one good example of the use[/color]
      of[color=blue]
      > frames. I would reconsider using frames alltogether, at least for the
      > regular pages, and accept the provider.nl in the address- and statusbars[/color]
      for[color=blue]
      > the time being (that is:until you move to mybusiness.nl permanently).
      > HTH
      > Ivo[/color]

      Thanks Ivo. I understand what you're saying. Maybe indeed its best to later
      move the entire site to mybusiness.nl! For the moment I keep trying to solve
      this puzzle. Stil hoping anyone can come up with some javascript (if at all
      possible).

      Frames: yes I know they are not considered very positive, for many reasons.
      I still did choose for frames though, because my client gave priority to
      speed, the site should be super fast. Reloading every time a new page with
      all menu-graphics in it would slow it all down... (for people with slow
      modems). Or maybe with speed in mind..was/is there a better option than
      frames? (graphics are already minimized in number and kb size)

      PV


      Comment

      Working...