Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. alternative to iFrame

alternative to iFrame

Scheduled Pinned Locked Moved ASP.NET
javascripthtmlsecuritybusinessquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    A M SOMAN
    wrote on last edited by
    #1

    Hi, I am using iFrame to display output of HTML code. For this I have set URL attribute of iFrame to "http:/somesite/default.aspx". This URL returns a text which gets displyed in iFrame. But, my client is not happy with using iFrame due to its disadvantages and security problems. Is there any other control which I can use to catch the output of my URL and display on a web page? I tried tag with "data" attribute. but it does not work. One thing to note here: I cannot use AJAX or Javascript because of business logic constraints. The desired code will be given to end user and he will paste it in his own web site page to see the output returned by URL. Just like ad banner. Thanks in advance.

    C L 3 Replies Last reply
    0
    • A A M SOMAN

      Hi, I am using iFrame to display output of HTML code. For this I have set URL attribute of iFrame to "http:/somesite/default.aspx". This URL returns a text which gets displyed in iFrame. But, my client is not happy with using iFrame due to its disadvantages and security problems. Is there any other control which I can use to catch the output of my URL and display on a web page? I tried tag with "data" attribute. but it does not work. One thing to note here: I cannot use AJAX or Javascript because of business logic constraints. The desired code will be given to end user and he will paste it in his own web site page to see the output returned by URL. Just like ad banner. Thanks in advance.

      C Offline
      C Offline
      Chetan Patel
      wrote on last edited by
      #2

      Frameset is also there you can use Frame Still if you are not happy, You can get the output using xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = ProcessRequest; xmlHttp.open( "GET", Url, true ); xmlHttp.send( null ); } function ProcessRequest() { //Type your code to read response data and put it out on your page }

      Best Regards, Chetan Patel

      1 Reply Last reply
      0
      • A A M SOMAN

        Hi, I am using iFrame to display output of HTML code. For this I have set URL attribute of iFrame to "http:/somesite/default.aspx". This URL returns a text which gets displyed in iFrame. But, my client is not happy with using iFrame due to its disadvantages and security problems. Is there any other control which I can use to catch the output of my URL and display on a web page? I tried tag with "data" attribute. but it does not work. One thing to note here: I cannot use AJAX or Javascript because of business logic constraints. The desired code will be given to end user and he will paste it in his own web site page to see the output returned by URL. Just like ad banner. Thanks in advance.

        C Offline
        C Offline
        Chetan Patel
        wrote on last edited by
        #3

        Example document.getElementById('divtodiaplsy").innerHTML=xmlHttp.responseText; do some R & D on it and it works

        Best Regards, Chetan Patel

        S 1 Reply Last reply
        0
        • A A M SOMAN

          Hi, I am using iFrame to display output of HTML code. For this I have set URL attribute of iFrame to "http:/somesite/default.aspx". This URL returns a text which gets displyed in iFrame. But, my client is not happy with using iFrame due to its disadvantages and security problems. Is there any other control which I can use to catch the output of my URL and display on a web page? I tried tag with "data" attribute. but it does not work. One thing to note here: I cannot use AJAX or Javascript because of business logic constraints. The desired code will be given to end user and he will paste it in his own web site page to see the output returned by URL. Just like ad banner. Thanks in advance.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I've been dealing with this myself for quite some time. Though some people may frown upon the practice of using iframes, sometimes it is the only (or at least the most sane and feasible) way to "interface" two standalone software systems. Also, there is rumor that IFRAME may become deprecated, but the jury appears to still be out on that. So, it's a good thing to start examining alternatives now. That said, here is an article that may interest you: http://www.w3.org/TR/WD-frames-970331[^] - The most pertinent part is about halfway down. It's a bit technical, but worth the read. Here are more links that may help: http://intranation.com/test-cases/object-vs-iframe/[^] http://www.thescripts.com/forum/thread568067.html[^] http://www.webmasterworld.com/forum21/6539.htm[^] http://www.456bereastreet.com/archive/200612/dump_iframes_and_use_object_elements_instead/[^] Second Method is described below. The use of iframes is an ongoing controversy. Are they good? Are they bad? I can honestly say I’m unbiased on this. I feel that iframes aren’t necessarily bad, but that there are alternatives that allow for better accessibility and greater search engine optimization. This is a mini-tutorial (hardly any work at all) dealing with CSS and XHTML which will allow you to create the same effect that comes with the standard iframe. To start off, all you’ll need to create your ‘iframe’ is a DIV layer, and a cascading stylesheet linked to the source (optional). Step 1: Create your div. <div>Paragraph or two of text here....</div> Step 2: Add the styles to the div. This is fairly simple. If you don’t have a stylesheet linked to the

          A 1 Reply Last reply
          0
          • C Chetan Patel

            Example document.getElementById('divtodiaplsy").innerHTML=xmlHttp.responseText; do some R & D on it and it works

            Best Regards, Chetan Patel

            S Offline
            S Offline
            Sandeep Mewara
            wrote on last edited by
            #5

            You should have updated your previous reply other than replying again. All your comments related to one thing would had been at one place then.

            1 Reply Last reply
            0
            • L Lost User

              I've been dealing with this myself for quite some time. Though some people may frown upon the practice of using iframes, sometimes it is the only (or at least the most sane and feasible) way to "interface" two standalone software systems. Also, there is rumor that IFRAME may become deprecated, but the jury appears to still be out on that. So, it's a good thing to start examining alternatives now. That said, here is an article that may interest you: http://www.w3.org/TR/WD-frames-970331[^] - The most pertinent part is about halfway down. It's a bit technical, but worth the read. Here are more links that may help: http://intranation.com/test-cases/object-vs-iframe/[^] http://www.thescripts.com/forum/thread568067.html[^] http://www.webmasterworld.com/forum21/6539.htm[^] http://www.456bereastreet.com/archive/200612/dump_iframes_and_use_object_elements_instead/[^] Second Method is described below. The use of iframes is an ongoing controversy. Are they good? Are they bad? I can honestly say I’m unbiased on this. I feel that iframes aren’t necessarily bad, but that there are alternatives that allow for better accessibility and greater search engine optimization. This is a mini-tutorial (hardly any work at all) dealing with CSS and XHTML which will allow you to create the same effect that comes with the standard iframe. To start off, all you’ll need to create your ‘iframe’ is a DIV layer, and a cascading stylesheet linked to the source (optional). Step 1: Create your div. <div>Paragraph or two of text here....</div> Step 2: Add the styles to the div. This is fairly simple. If you don’t have a stylesheet linked to the

              A Offline
              A Offline
              A M SOMAN
              wrote on last edited by
              #6

              Thanks all for your inputs.. I ended up using an OBJECT tag with data attribute pointing to the desired URL. This works smoothly in all browsers except IE :( Right now searching for fixing this for IE.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups