Solved

why does this iframe src not display in Firefox

Posted on 2010-09-21
7
891 Views
Last Modified: 2013-11-19
I'm not sure what's going on here. The first html code block is a basic test page containing the iframe, the second code block is the src for the iframe. Not sure why the iframe is empty in Firefox. It is displaying in IE8.

If it matters, these files are both local files not on a server of any kind.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Upload Test</title>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
	<script type="text/javascript">/*<![CDATA[*/ 
		$(document).ready(function(){
			
		});
	/*]]>*/</script>
</head>
<body>
	
	<iframe src="ajax_upload_form.html" id="test" />
	
</body>
</html>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Upload Test</title>
</head>
<body>

<form method="post" action="ajax_upload_form.html">
	<input type="submit" value="Go" />
</form>
	
	<p>I am here, what is going on exactly?</p>
</body>
</html>

Open in new window

0
Comment
Question by:dirknibleck
  • 4
  • 3
7 Comments
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 33727220
Works fine for me in Firefox (3.6.10)
0
 
LVL 15

Author Comment

by:dirknibleck
ID: 33727610
Weird, I am also using 3.6.10 (on Windows). No go for me though. It just displays the border of the frame and no contents. Firebug shows the contents of the iFrame as an empty <html><body></body></html> skeleton...
0
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 33727720
I've tried several things and I can't get it to break :(

Not sure I can really help you here. Sorry.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 33727756
If you set the iFrame src to a non-existent page, do you see an error inside the iFrame?

The only thing I can think of is maybe a typo in the src filename. Wild stab in the dark through !


0
 
LVL 15

Author Comment

by:dirknibleck
ID: 33727786
Good suggestion. No luck though. No error message is displayed.

When I have the src correct, if I view page source I can click on the src link and it successfully brings up the source for the correct file...

0
 
LVL 15

Author Comment

by:dirknibleck
ID: 33727829
Well, strangely enough, I disable Firebug, refreshed the page and it worked. Then I reactivated Firebug and it still works. Makes no sense...


0
 
LVL 15

Author Closing Comment

by:dirknibleck
ID: 33727838
For your help
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create animated movies for web page 18 86
Place text over image using CSS 6 52
SSRS 2016 Rendering HTML tables 3 31
message Alert on an empty search 10 22
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

831 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