views:

60

answers:

1

Hi guys, i am having difficulties trying to solve a runtime error that i get in IE7 but its working fine in IE8, it says that this.scroller is nutll or not an object for a scroller that i use.but what surprises me is that it is working on every browser. Please guys i need a solution.if i have not clarified my question please let me know.I am just looking for a reason that may cause this.

+1  A: 

have you tried checking pulling back scroller using getElementsbyID instead?

var elem = document.getElementById("scroller");
if (!elem)
{
   //do stuff
}
Mauro