Shadowing Posted July 2, 2012 Share Posted July 2, 2012 Hey guys I"m getting this error in IE and not in firebug but the code also isnt working. Getting hit with object doesnt support this property or method i checked time. so that worksits saying it for the last line using indexOf var time = 0; var time_array = [0, 10, 20, 30, 40, 50]; var check_map_update = time_array.indexOf(time); Link to comment Share on other sites More sharing options...
thescientist Posted July 2, 2012 Share Posted July 2, 2012 indexOf is not supported in <= IE8http://www.w3schools.com/jsref/jsref_indexof_array.asp Link to comment Share on other sites More sharing options...
Shadowing Posted July 2, 2012 Author Share Posted July 2, 2012 ahh thanks. so i guess i need to use a loop or something to compare against the array Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now