Link to home
Start Free TrialLog in
Avatar of dirknibleck
dirknibleck

asked on

why does this iframe src not display in Firefox

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

Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Works fine for me in Firefox (3.6.10)
Avatar of dirknibleck
dirknibleck

ASKER

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...
I've tried several things and I can't get it to break :(

Not sure I can really help you here. Sorry.
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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...

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


For your help