alternative to iFrame
-
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.
-
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.
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
-
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.
Example document.getElementById('divtodiaplsy").innerHTML=xmlHttp.responseText; do some R & D on it and it works
Best Regards, Chetan Patel
-
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.
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
-
Example document.getElementById('divtodiaplsy").innerHTML=xmlHttp.responseText; do some R & D on it and it works
Best Regards, Chetan Patel
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.
-
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