Open external link into DIVs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eddy.pagotto@gmail.com

    Open external link into DIVs

    Hi,
    I'm trying to display external link into a DIV (http://
    www.google.com/, for example).
    I don't want to use IFRAME, because I already tried it and I'm not
    satisfied about the results.
    How can I simulate IFRAME? Possibly without using Ajax.
    I passed all the day looking for scripts that can help me, but
    unsuccessfully.
    Thanks in advance for any suggestion,

    Eddy

  • shimmyshack

    #2
    Re: Open external link into DIVs

    On Apr 30, 3:12 pm, eddy.pago...@gm ail.com wrote:
    Hi,
    I'm trying to display external link into a DIV (http://www.google.com/, for example).
    I don't want to use IFRAME, because I already tried it and I'm not
    satisfied about the results.
    How can I simulate IFRAME? Possibly without using Ajax.
    I passed all the day looking for scripts that can help me, but
    unsuccessfully.
    Thanks in advance for any suggestion,
    >
    Eddy
    suggest you spend your next day looking into iframes, divs cant help
    you here. iframes are the way to go, unless you use server side proxy
    script and fill the div with references to the proxied html - which I
    suggest you dont unless you are very familiar with server scripting.

    Comment

    • bradleyjcooper@gmail.com

      #3
      Re: Open external link into DIVs

      What exactly are you trying to attempt? I understand you're wanting to
      use an iframe, but what are you trying to accomplish with it? Are you
      writing content that you want to update in one spot and it pulls into
      another page?

      Having a better idea of what you're looking to do can give me a better
      idea on what to possibly recommend.

      Comment

      • Randy Webb

        #4
        Re: Open external link into DIVs

        bradleyjcooper@ gmail.com said the following on 4/30/2007 11:10 PM:
        What exactly are you trying to attempt?
        Can you not understand what you read? The request was quite simple.
        Let me quote the request for you:
        <quote >
        I'm trying to display external link into a DIV (http://www.google.com/,
        for example).
        </quote>
        I understand you're wanting to use an iframe,
        I guess you can't understand what you read. Again, let me quote the
        second sentence of the original post for you:

        <quote>
        I don't want to use IFRAME, because I already tried it and I'm not
        satisfied about the results.
        </quote>

        Clearly, they don't want to use an IFrame but you are "understand ing
        you're wanting to use an IFrame". Perhaps before answering questions you
        might want to read up on English comprehension first.
        but what are you trying to accomplish with it?
        You really can't comprehend simple English can you?
        Are you writing content that you want to update in one spot and it pulls into
        another page?
        Ditto.
        Having a better idea of what you're looking to do can give me a better
        idea on what to possibly recommend.
        Based on your inability to understand what was pretty simple to start
        with, I find it difficult to believe that anything you could "possibly
        recommend" would be worth trying.

        JFTR, What was wanting to be done can't be done.

        --
        Randy
        Chance Favors The Prepared Mind
        comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
        Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

        Comment

        • dd

          #5
          Re: Open external link into DIVs

          On Apr 30, 4:12 pm, eddy.pago...@gm ail.com wrote:
          Hi,
          I'm trying to display external link into a DIV (http://www.google.com/, for example).
          I don't want to use IFRAME, because I already tried it and I'm not
          satisfied about the results.
          How can I simulate IFRAME? Possibly without using Ajax.
          I passed all the day looking for scripts that can help me, but
          unsuccessfully.
          I've also had the need to do this and the only way I could
          get it to work "easily" was using an iframe on the DIV. If
          the page that you want to load into that iframe is from a
          different domain, then I'm sure you know that it's pretty much
          dead in terms of communication with it. All you can do is make
          it navigate somewhere else. However, if that page that you're
          loading is in your domain, then you have full access to all
          that's on it. You can call functions in it and get variables, you
          can write into DIV's that it has, and it can do the same things
          back up to the parent. You can achieve the same thing by
          creating a friendly iframe also. Create one that has no src,
          then open the document and document.write tags into it. This
          is becoming a popular way of using iframes now. You squirt
          the HTML directly into the iframe from the parent. I could go
          into more detail, but it's iframe based and you're trying to
          avoid that. Perhaps it's worth explaining your concerns about
          iframes.

          Comment

          • bradleyjcooper@gmail.com

            #6
            Re: Open external link into DIVs

            Listen, there's no need to be a jackass about this. The request seems
            simple, but the request is unclear. There's an underlying application
            requirement that is not conveyed in the request. First off, you
            shouldn't be using IFrames, Second off you shouldn't use javascript to
            do something that really requires some server side code. I was trying
            to offer some advice and can do so coherently if I knew a little more
            background.

            Second off don't listen to people like Randy Webb. These people are
            the reason that web apps are in such a poor shape, with hundreds of
            lines of unnecessary code and unruly load times. I'll hold my tongue.

            Comment

            • Evertjan.

              #7
              Re: Open external link into DIVs

              bradleyjcooper@ gmail.com wrote on 01 mei 2007 in comp.lang.javas cript:
              Listen, there's no need to be a jackass about this. The request seems
              simple, but the request is unclear.
              What are you responding to?

              [please always quote on usenet]

              --
              Evertjan.
              The Netherlands.
              (Please change the x'es to dots in my emailaddress)

              Comment

              • bradleyjcooper@gmail.com

                #8
                Re: Open external link into DIVs

                What are you responding to?
                [please always quote on usenet]
                The attack from Randy Webb..There's no need for that.



                Comment

                • Evertjan.

                  #9
                  Re: Open external link into DIVs

                  bradleyjcooper@ gmail.com wrote on 01 mei 2007 in comp.lang.javas cript:
                  >What are you responding to?
                  >[please always quote on usenet]
                  >
                  The attack from Randy Webb..There's no need for that.
                  Unquoted, I don't know what you are talking about.


                  --
                  Evertjan.
                  The Netherlands.
                  (Please change the x'es to dots in my emailaddress)

                  Comment

                  • shimmyshack

                    #10
                    Re: Open external link into DIVs

                    On May 1, 2:28 pm, "bradleyjcoo... @gmail.com"
                    <bradleyjcoo... @gmail.comwrote :
                    Listen, there's no need to be a jackass about this. The request seems
                    simple, but the request is unclear. There's an underlying application
                    requirement that is not conveyed in the request. First off, you
                    shouldn't be using IFrames, Second off you shouldn't use javascript to
                    do something that really requires some server side code. I was trying
                    to offer some advice and can do so coherently if I knew a little more
                    background.
                    >
                    Second off don't listen to people like Randy Webb. These people are
                    the reason that web apps are in such a poor shape, with hundreds of
                    lines of unnecessary code and unruly load times. I'll hold my tongue.
                    I too tend to look further than the OP's words; however there is some
                    number of people in this world who perceive things very literally, and
                    who think that is acceptable, they get frustrated when others do not
                    provide them with the information they need to make a unambigous and
                    informative reply, frustrated people tend to lash out in some way.

                    I thought from reading the tone of the OP, that the app requirement
                    was just to have "some remote content displayed probably on mouseover
                    in a little window" and thought the OP couldnt figure out how to style
                    the iframe.
                    Regards of the iframe debate [ they have been around almost since the
                    dawn of browsers and are well supported in most readers ], and not
                    mentioning server side stuff too much - this is a js ng, and the op
                    probably doesnt do much ss scripting - an iframe would be the easiest
                    way for someone to get up and running, for a personal project. Someone
                    who scripts for a living would be using ajax with some sss to get back
                    a small amount of content, and would then attach the functionality
                    unobtrusively. I didnt think the OP would go for that.

                    Web apps are in a terrible state, and there's loads of ignorance and
                    laziness, but it is a popular game, everyones uncle knows someone who
                    can put up a few pages, if he can't do it, why pay a professional!
                    Standards? what are they.
                    Bradlet as long as you do the best you can, just sit back and wink. ;)

                    Comment

                    • shimmyshack

                      #11
                      Re: Open external link into DIVs

                      On May 1, 2:54 pm, shimmyshack <matt.fa...@gma il.comwrote:
                      On May 1, 2:28 pm, "bradleyjcoo... @gmail.com"
                      >
                      <bradleyjcoo... @gmail.comwrote :
                      Listen, there's no need to be a jackass about this. The request seems
                      simple, but the request is unclear. There's an underlying application
                      requirement that is not conveyed in the request. First off, you
                      shouldn't be using IFrames, Second off you shouldn't use javascript to
                      do something that really requires some server side code. I was trying
                      to offer some advice and can do so coherently if I knew a little more
                      background.
                      >
                      Second off don't listen to people like Randy Webb. These people are
                      the reason that web apps are in such a poor shape, with hundreds of
                      lines of unnecessary code and unruly load times. I'll hold my tongue.
                      >
                      I too tend to look further than the OP's words; however there is some
                      number of people in this world who perceive things very literally, and
                      who think that is acceptable, they get frustrated when others do not
                      provide them with the information they need to make a unambigous and
                      informative reply, frustrated people tend to lash out in some way.
                      >
                      I thought from reading the tone of the OP, that the app requirement
                      was just to have "some remote content displayed probably on mouseover
                      in a little window" and thought the OP couldnt figure out how to style
                      the iframe.
                      Regards of the iframe debate [ they have been around almost since the
                      dawn of browsers and are well supported in most readers ], and not
                      mentioning server side stuff too much - this is a js ng, and the op
                      probably doesnt do much ss scripting - an iframe would be the easiest
                      way for someone to get up and running, for a personal project. Someone
                      who scripts for a living would be using ajax with some sss to get back
                      a small amount of content, and would then attach the functionality
                      unobtrusively. I didnt think the OP would go for that.
                      >
                      Web apps are in a terrible state, and there's loads of ignorance and
                      laziness, but it is a popular game, everyones uncle knows someone who
                      can put up a few pages, if he can't do it, why pay a professional!
                      Standards? what are they.
                      Bradlet as long as you do the best you can, just sit back and wink. ;)
                      did I just refer to you as Bradlet? sorry!

                      Comment

                      • bradleyjcooper@gmail.com

                        #12
                        Re: Open external link into DIVs

                        On May 1, 9:56 am, shimmyshack <matt.fa...@gma il.comwrote:
                        On May 1, 2:54 pm, shimmyshack <matt.fa...@gma il.comwrote:
                        >
                        >
                        >
                        On May 1, 2:28 pm, "bradleyjcoo... @gmail.com"
                        >
                        <bradleyjcoo... @gmail.comwrote :
                        Listen, there's no need to be a jackass about this. The request seems
                        simple, but the request is unclear. There's an underlying application
                        requirement that is not conveyed in the request. First off, you
                        shouldn't be using IFrames, Second off you shouldn't use javascript to
                        do something that really requires some server side code. I was trying
                        to offer some advice and can do so coherently if I knew a little more
                        background.
                        >
                        Second off don't listen to people like Randy Webb. These people are
                        the reason that web apps are in such a poor shape, with hundreds of
                        lines of unnecessary code and unruly load times. I'll hold my tongue.
                        >
                        I too tend to look further than the OP's words; however there is some
                        number of people in this world who perceive things very literally, and
                        who think that is acceptable, they get frustrated when others do not
                        provide them with the information they need to make a unambigous and
                        informative reply, frustrated people tend to lash out in some way.
                        >
                        I thought from reading the tone of the OP, that the app requirement
                        was just to have "some remote content displayed probably on mouseover
                        in a little window" and thought the OP couldnt figure out how to style
                        the iframe.
                        Regards of the iframe debate [ they have been around almost since the
                        dawn of browsers and are well supported in most readers ], and not
                        mentioning server side stuff too much - this is a js ng, and the op
                        probably doesnt do much ss scripting - an iframe would be the easiest
                        way for someone to get up and running, for a personal project. Someone
                        who scripts for a living would be using ajax with some sss to get back
                        a small amount of content, and would then attach the functionality
                        unobtrusively. I didnt think the OP would go for that.
                        >
                        Web apps are in a terrible state, and there's loads of ignorance and
                        laziness, but it is a popular game, everyones uncle knows someone who
                        can put up a few pages, if he can't do it, why pay a professional!
                        Standards? what are they.
                        Bradlet as long as you do the best you can, just sit back and wink. ;)
                        >
                        did I just refer to you as Bradlet? sorry!
                        Thanks. I'm an advocate of standards and everyday see people passing
                        around bad work. Just trying to offer some good advice. Thanks!

                        Comment

                        • Randy Webb

                          #13
                          Re: Open external link into DIVs

                          bradleyjcooper@ gmail.com said the following on 5/1/2007 9:28 AM:
                          Listen, there's no need to be a jackass about this.
                          I assume that you are referring to me even though you can't even reply
                          to me, you replied to dd. That aside, you haven't seen the beginning of
                          jackass yet.
                          The request seems simple, but the request is unclear.
                          The request was *very* clear if you can comprehend what you read.
                          There's an underlying application requirement that is not conveyed in the request.
                          Says who? Oh wait, I am the jackass and you are the psychic. Well, since
                          you can tell that much from the post, you can't be very much of a
                          psychic if you still have to ask a question to make sure they are
                          wanting what you think they want.
                          First off, you shouldn't be using IFrames,
                          Non-sense.
                          Second off you shouldn't use javascript to do something that really
                          requires some server side code.
                          More nonsense.
                          I was trying to offer some advice and can do so coherently if I
                          knew a little more background.
                          You couldn't even comprehend the question, how the hell do you suppose
                          you could offer advice? Your whole idea was telling them they wanted
                          something they explicitly said they did not want.
                          Second off don't listen to people like Randy Webb.
                          If your mama knew how stupid you were, she would trade you in a pet
                          monkey.[1]
                          These people are the reason that web apps are in such a poor shape,
                          I will put my code up for quality review against yours anytime you want
                          to endeavor it. But, it is nice to know that I am personally responsible
                          for the state of web apps.
                          with hundreds of lines of unnecessary code and unruly load times.
                          You really are as stupid as I thought you were.
                          I'll hold my tongue.
                          That would have been the smartest thing you have done yet.

                          And, once again, a simple answer to the Original Question, that you
                          still haven't managed to comprehend yet: It can *NOT* be done. See how
                          easy that was? I would explain why but I doubt you would understand, or
                          comprehend, what I wrote.

                          [1] Fire Down Below.

                          --
                          Randy
                          Chance Favors The Prepared Mind
                          comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
                          Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

                          Comment

                          • -Lost

                            #14
                            Re: Open external link into DIVs :OT:

                            Randy Webb wrote:
                            If your mama knew how stupid you were, she would trade you in a pet
                            monkey.[1]
                            >
                            [1] Fire Down Below.
                            Woah, crazy coincidence. My bottle of tequila and I just watched Fire
                            Down Below *last night*!

                            --
                            -Lost
                            Remove the extra words to reply by e-mail. Don't e-mail me. I am
                            kidding. No I am not.

                            Comment

                            • Randy Webb

                              #15
                              Re: Open external link into DIVs :OT:

                              -Lost said the following on 5/1/2007 6:28 PM:
                              Randy Webb wrote:
                              If your mama knew how stupid you were, she would trade you in a pet
                              >monkey.[1]
                              >>
                              >[1] Fire Down Below.
                              >
                              Woah, crazy coincidence. My bottle of tequila and I just watched Fire
                              Down Below *last night*!
                              >
                              The blond on the mountain is the pattern for my desired nympho :)
                              Although I left the word "on" out.
                              --
                              Randy
                              Chance Favors The Prepared Mind
                              comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
                              Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

                              Comment

                              Working...