Jump to content

This works in every browser I tested except IE8 (timeout/interval issue)


Lucy

Recommended Posts

This (part of a function) does not work in IE8:

	fTiming = setTimeout(	function()	{		fTiming = setInterval(		function()	{			fadeEffect(tLayer);		}, step); 	},fadeTime);

'fadeEffect' does work, and it works if I use setTimeout with it, but the above code literally does nothing, and I don't even get any error messages. It works in Firefox, Opera and Chrome. Does anyone know why?

Link to comment
Share on other sites

Yeah, I spent ages figuring that one out, lol. This still isn't quite fixed, as it turns out - but now the IE developer tools window has gone and won't come back so I can't use console.log statements to figure out what's going on. Fun.

Link to comment
Share on other sites

Turns out it has a problem with using a variable as the number of milliseconds.

That's not a problem, maybe the variable wasn't set when that code ran. If you're still having problems you should probably post more code. The code you posted above should be fine in general.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...