problems with IE6

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jammyjames
Forum Newbie
Posts: 12
Joined: Fri Jun 30, 2006 8:45 am

problems with IE6

Post by jammyjames »

Hi,

I have two sites that I have been working on:

http://www.yarmouthportal.com &
http://www.maineventcollectables.co.uk/index2.php

They both have fixed sizes and it is very important for them to load correctly or they look terrible.

In Firefox they work fine but in Internet Explorer the page has to be refreshed for it to load properly and I don't know why.

Does anyone know what I could do to fix or prevent this from hapenning?

Thanks

James Edmonds
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Most likely your javaScript has a bug in it. Test it with the javaScript.
jammyjames
Forum Newbie
Posts: 12
Joined: Fri Jun 30, 2006 8:45 am

Post by jammyjames »

test what with the javascript?

sorry if this is a stupid question
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

I'm sorry, I meant without the javascript. Also there is a million &nbsp; in your <a href="#" title="Home Page"> link.

Code: Select all

<script type="text/javascript" src="scripts/ie7-standard.js"></script>
<script type="text/javascript" src="scripts/form.js"></script>
<script type="text/javascript">
	// <![CDATA[
		window.onload = function() {
			prepInput('searchQ', ' Autographed Mask');
			prepInput('subEmail', ' you@address.com');
		}
	// ]]>
	</script>

Code: Select all

<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
<!-- 
var sc_project=1723389; 
var sc_invisible=1; 
var sc_partition=16; 
var sc_security="8b9396a9"; 
var sc_remove_link=1; 
//-->
</script>

<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script>

<noscript><img  src="http://c17.statcounter.com/counter.php?sc_project=1723389&java=0&security=8b9396a9&invisible=1" alt="free html hit counter" border="0"> </noscript>
<!-- End of StatCounter Code -->
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

I'm sure he meant to turn off all javascript to see if that is what is causing the problem...

However, I would first recomend ensuring that the page(s) validate, as the first site you posted is showing 29 errors (http://validator.w3.org/check?verbose=1 ... tal.com%2F)

Though browsing through the errors, i'm not seeing anything show-stopping bad, but it's always good to start from a clean, valid page...

<edit>
/me is a slow typer... heh
</edit>
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Indeed, make sure the pages are valid. Certainly the javascript before the DOCTYPE is not correct. The validator doesn't recognize the DOCTYPE now.
Post Reply