Solved

iframe in HTML

Posted on 2009-07-06
7
278 Views
Last Modified: 2013-11-19
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>  
</div>

Open in new window

0
Comment
Question by:ank9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 30

Expert Comment

by:IanTh
ID: 24784125
iframes do not work properly anymore

http://www.w3schools.com/TAGS/tag_iframe.asp

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
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 24788543
>> 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:

http://localhost:8080/cobs/component/cob_doc_import?gbURL=www.google.com

Whatever is supposed to be happening with that component locally, isn't.
0
 

Author Comment

by:ank9
ID: 24791002
>>iframes do not work properly anymore

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

thank you
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ank9
ID: 24791024
>>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.
0
 

Author Comment

by:ank9
ID: 24791032
For testing purposes, I included a local HTML page in another iFrame. but also does not work.
0
 

Author Comment

by:ank9
ID: 24791042
The above works fine in firefox but not in IE
0
 
LVL 1

Accepted Solution

by:
ibs06t earned 500 total points
ID: 24791692
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

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
custom authorization on controller action and HTML in asp.net mvc 1 45
..ignore the Question 1 21
Fix Form size HTML 16 31
Navigation Menu Does Not Show on iPad 4 33
This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question