iframe in HTML

In my static HTML page, I am doing the below.

But it is not displaying anything in place of the iframe. do I need to do something else as well for iframe to work.

<div class="portlet-content">
   <iframe width="100%" height="100%" name="fr1"
		  src="admin.html" > eeeeee</iframe> 
   <iframe width="100%" height="100%" name="fr1"
	  src="http://localhost:8080/cobs/component/cob_doc_import?gbURL=www.google.com" > </iframe>  

Open in new window

Who is Participating?
ibs06tConnect With a Mentor Commented:
u give the correct code its will perfectly working. pl check whether URL in correct path.... and then inside the iframe tag value not displayed in browser, and try to give height in px
<iframe width="100%" height="100%" name="fr1"src="http://google.com"> </iframe> 

Open in new window

iframes do not work properly anymore


you need to use a different approach and that is use a template in dw and use a copy of the template instead of a i-frame as I tried it but it causes all kinds of problems and you'll find more benefits using templates
Jason C. LevineNo oneCommented:
>> iframes do not work properly anymore

This is not entirely true.  iframes are still supported by all major browsers but each browser does place some security on what can be passed through an iframe.  Additionally, some security software scans for and blocks hidden iframes as that is a common vector for malware transmission.  But a plain old iframe displaying a page from a site works fine 99 times out of 100.

I think your problem is more likely here:


Whatever is supposed to be happening with that component locally, isn't.
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

ank9Author Commented:
>>iframes do not work properly anymore

Can you please explain a bit more about the alternate approach. I did not get it.

thank you
ank9Author Commented:
>>Whatever is supposed to be happening with that component locally, isn't.

Within the HTML page, I need to display some information from a component which is deployed on another App server.

The component displays fine when accessed independently but does not display anything when accessed from within iFrame of an HTML page.

Please let me know how to proceed.
ank9Author Commented:
For testing purposes, I included a local HTML page in another iFrame. but also does not work.
ank9Author Commented:
The above works fine in firefox but not in IE
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.