How to position an IFRAME

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

    How to position an IFRAME

    I want to open an IFRAME. The chilld IFRAME need to be scrolled 100px from
    left and 200px from top. This setup needs to be done from the parent frame.
    Is that possbile?



  • Randy Webb

    #2
    Re: How to position an IFRAME

    QA wrote:
    [color=blue]
    > I want to open an IFRAME. The chilld IFRAME need to be scrolled 100px from
    > left and 200px from top. This setup needs to be done from the parent frame.
    > Is that possbile?[/color]

    Yes, it's possible. Use a hash.

    <iframe src="somePage.h tml#anchorName" ></iframe>

    Then put an anchor in somePage.html where you want it scrolled to.

    comp.infosystem s.www.authoring.html is preferred to alt.html (or so it
    was last I heard)

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • QA

      #3
      Re: How to position an IFRAME

      I don't have access to the child frame, as it is a foreign page. Your method
      does not work.
      [color=blue]
      > QA wrote:
      >[color=green]
      > > I want to open an IFRAME. The chilld IFRAME need to be scrolled 100px[/color][/color]
      from[color=blue][color=green]
      > > left and 200px from top. This setup needs to be done from the parent[/color][/color]
      frame.[color=blue][color=green]
      > > Is that possbile?[/color]
      >
      > Yes, it's possible. Use a hash.
      >
      > <iframe src="somePage.h tml#anchorName" ></iframe>
      >
      > Then put an anchor in somePage.html where you want it scrolled to.
      >
      > comp.infosystem s.www.authoring.html is preferred to alt.html (or so it
      > was last I heard)
      >
      > --
      > Randy
      > comp.lang.javas cript FAQ - http://jibbering.com/faq[/color]


      Comment

      • Mark Parnell

        #4
        Re: How to position an IFRAME

        On Wed, 08 Sep 2004 23:08:54 GMT, QA <QA@alexa.com > declared in
        alt.html,comp.l ang.javascript:
        [color=blue]
        > I don't have access to the child frame, as it is a foreign page. Your method
        > does not work.[/color]

        Do you have permission from the other site to use their page? If not,
        you are in breach of copyright.

        BTW: Please don't post upside down.



        This will help:


        --
        Mark Parnell

        "Never drink rum&coke whilst reading usenet" - rf 2004

        Comment

        • Randy Webb

          #5
          Re: How to position an IFRAME

          QA wrote:[color=blue]
          > I don't have access to the child frame, as it is a foreign page. Your method
          > does not work.[/color]

          If you do not have access to the child frame, then you can not script
          it. Its a cross-domain security violation.

          And, as has been pointed out, your newsreader is broken.

          Copyright also comes into play.

          --
          Randy
          comp.lang.javas cript FAQ - http://jibbering.com/faq

          Comment

          • WebcastMaker

            #6
            Re: How to position an IFRAME

            In article <1t1dxd3329v6w$ .44pr3o6uvxao.d lg@40tude.net>,
            webmaster@clark ecomputers.com. au says...[color=blue][color=green]
            > > I don't have access to the child frame, as it is a foreign page. Your method
            > > does not work.[/color]
            > Do you have permission from the other site to use their page? If not,
            > you are in breach of copyright.[/color]

            Could be, there are a lot of variables we don't know. Not having access
            != don't have permission. (Probably does, but we don't know)
            --
            WebcastMaker
            Webcasting for free

            Comment

            • Mark Parnell

              #7
              Re: How to position an IFRAME

              On Wed, 8 Sep 2004 21:09:38 -0400, WebcastMaker <info@invalid.c om>
              declared in alt.html,comp.l ang.javascript:
              [color=blue]
              > Could be, there are a lot of variables we don't know.[/color]

              Which is why I asked, instead of accusing. :-)
              [color=blue]
              > Not having access
              > != don't have permission. (Probably does, but we don't know)[/color]

              Indeed.

              --
              Mark Parnell

              "Never drink rum&coke whilst reading usenet" - rf 2004

              Comment

              Working...