IE tons of problems :-(

Hello everyone,

I’m experiencing serious problems while checking my web in IE. I would have ignored but since 51% of users are using IE, it’s hard…

I have plans how to sort out most of the problems (conditions which would alter the code - i.e. <a href="" onclick="mailto_form()"> which opens popup with contact form to send email to admin. If visitor uses IE, I’d substitute by some button etc…) but this one is critical and I need to find solution ASAP.

My web’s primary function should be sending e-cards with Apocalyptical theme (why not to make fun of something irrational so many people believe) and everything works fine with FF, Chrome or Safari.

Problem with IE is that section with ecards doesn’t work at all. I’m using simple include code:

[php] <?php
$p = $_GET[‘img’];

	$ecard = "articles/ecards/".$p.".php";

	if(file_exists($ecard))
		include($ecard);
	elseif($p=="")
		echo "<span>No e-card loaded...</span></div>";
	else
		echo "Sorry, something went wrong. Please try again:<BR>";
		
		
?>[/php]

After this, some more includes follow. If I have no e-card included, everything displays fine in IE (well, the formatting is not exactly what it should be…) but when I load one, nothing is included (just header and then footer - I don’t include footer into pages, it’s part of gallery.php code).

I’m using the same code in Articles section and there are no problems.

Websites url is http://apocalypsecards.com, I think it might help to see what problem I’m experiencing and see it in IE and some of the other browsers to compare.

I would have understood that there is some kind of mistake if it didn’t work in any of the browsers or if the code didn’t work neither in Gallery nor Articles section. It’s confusing for me.

I’d really appreciate any help or ideas.

BTW, I’m using IE 9 to test it. Otherwise Chrome, FF and Safari - trying to keep all of them updated.

This bloody IE problem is really frustrating and I’ve run out of ideas. Thanks for any constructive suggestions

Well, the problem is glaring out at you… In your ecard IF clause, you close an DIV, but, sometimes you do not close it… So, this is how you debug it…

Run it in FF, RIGHT-CLICK on the resulting page, VIEW-SOURCE. Save source.
Run it in IE, RIGHT-CLICK on the resulting page, VIEW-SOURCE. Compare the source to above.

I use NotePad++ to do a side-by-side compare. (Much easier)

I bet you will find this is causing IE to loose track of the divisions. Since you only posted a small amount of the page, this is just a guess. If you compare the actual source code for the page as above, you will be able to see where IE is failing. You can even save this code and edit it till you find the solution. Debugging differences between browser’s is a rough task! Good luck, let us know…

Thanks for suggestion, I will get to check it in the evening (hopefully), so I’ll come back later and let know what I found out. Your words are true, it’s kinda nightmare to get everything to work properly.

Sponsor our Newsletter | Privacy Policy | Terms of Service