Jump to content

iframe with Firefox makes Windows go boom?


Recommended Posts

Recently, I've been revamping my webpage. Although, I've only been experimenting with the HTML tag iframe. I've researched it many times to come up short of what keeps happening.Every time I select the file in Windows, my Windows Explorer 'has encountered an error and must close.' So, everything disappears and reappears. That's fine, but I cannot edit that particular file at my house (which I spend most of my time on).There is some JavaScript within the file (code enclosed at the end), but it works on any other computer I've tested it on. I really hope that it's not the reason, as JavaScript shouldn't be that powerful.Anyway, the problem is that I can view other iframe documents quite well without damage. Here's the code...

<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>	<title>Aeon's Rants</title><style type="text/css">body{	background-color: #3A3A3A;	}a{	border: 0px;	}a:visited{	border: 0px;	}a:active{	border: 0px;	}img{	border: 0px;	}td.nav{	align: center;	}</style></head><body><table border="1" bordercolorlight="black" bordercolordark="black" width="100%" cellspacing="0" height="100%">	<tr>		<td align="center" height="104"><table border="0" cellspacing="0" cellpadding="0">	<tr>		<td align="center" class="nav"><a href="home.html"		onMouseOver="document.home.src='nav/home-over.gif'"		onMouseOut="document.home.src='nav/home.gif'"		target="content"		>		<img src="nav/home.gif" name="home" id="home" alt="home" /></a></td>		<td align="center" class="nav"><a href="rants.html"		onMouseOver="document.rants.src='nav/rants-over.gif'"		onMouseOut="document.rants.src='nav/rants.gif'"				target="content"		>		<img src="nav/rants.gif" name="rants" id="rants" alt="rants" /></a></td>		<td align="center" class="nav"><a href="philosophy.html"		onMouseOver="document.philosophy.src='nav/philosophy-over.gif'"		onMouseOut="document.philosophy.src='nav/philosophy.gif'"		target="content"		>		<img src="nav/philosophy.gif" name="philosophy" id="philosophy" alt="philosophy" /></a></td>		<td align="center" class="nav"><a href="sponsors.html"		onMouseOver="document.sponsors.src='nav/sponsors-over.gif'"		onMouseOut="document.sponsors.src='nav/sponsors.gif'"		target="content"		>		<img src="nav/sponsors.gif" name="sponsors" id="sponsors" alt="sponsors" /></a></td>		<td align="center" class="nav"><a href="contact.html"		onMouseOver="document.contact.src='nav/contact-over.gif'"		onMouseOut="document.contact.src='nav/contact.gif'"		target="content"		>		<img src="nav/contact.gif" name="contact" id="contact" alt="contact" /></a></td>	</tr></table>		</td>	</tr>	<tr>		<td align="center"><iframe src="home.html" name="content" width="100%" height="100%" scrolling="auto" frameborder="0"></iframe><noframes>You must have frames enabled to view this page.</noframes>		</td></table></body></html>

P.S. It happened while with HTML and XHTML.

Link to post
Share on other sites
Guest FirefoxRocks

It may be a problem with Windows Explorer. This means that you can either fix it wtih Microsoft or that you may have to reinstall Windows. :) Are you sure it is Windows Explorer, not Internet Explorer?

Link to post
Share on other sites

That file may simply be corrupt on your computer at home. If you can open the file on other computers, try copying the file and emailing it to yourself. Then, when you get home, you can delete the file on your home computer and download the new version from your email. If it was a corrupt file, your problems should be solved.

Link to post
Share on other sites

My default open of the file is Textpad, but I can't do it unless I'm directly in Textpad, then click open.The thing I'm worried about is that Firefox is somehow tampering with the file. If so, my favorite browser is now corrupted... *sigh*Although, Windows Explorer is the problem. I'll try it, but the source of the file is my flashdrive, and I open it when I'm at school too.I tried copying the code and pasting it in a new file, then saving over it, but the same thing happens. I'm in such disarray with a webpage behind schedule! =/

Link to post
Share on other sites

Clicking on the file probably causes Explorer to try and generate a preview of what the page looks like, and some code in the file might be causing it to crash. Which wouldn't be all that surprising. If you can view other iframes without a problem, then the problem code might be in the iframe source, but you didn't post that code. You should also remove the noscript tag, those do not apply to iframes. That might be causing a crash right there, although the browser should be able to recover from that. Also, validate your code, both the parent page and the iframe source, and fix any validation errors that show up. You can validate here:http://validator.w3.org/That code shows 17 errors when validating as XHTML strict, which is what the doctype says it is. Fix those first, and then see if the problem still exists.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...