Reputation: 30691
I have a large javaScript file, managing all kinds of UI elements. It works perfectly in FF, chrome and Safari, but in IE it falls over.
I loaded it into IE8 to use the JS debugger, and it points to this line:
var myFooter = false;
and claims: Object doesn't support this property or method
.
Edit
It seems to have a problem with this function, specifically the var
declaration
function live_test(){
var active_project;
active_project = $("div.project_holder.active");
$("#circles img.link.active").removeClass('active');
$("#circles img.link").each(function(){
if ($(this).data('project')[0] == active_project[0]){
$(this).addClass("active");
}
});
}
Upvotes: 1
Views: 189
Reputation: 30691
Problem was solved by changing each $
for jQuery
As it lives in Wordpress, it had noConlict turned on.
Upvotes: 1
Reputation: 7096
check to see if you have an extra comma or something
Throw your JS code in jslint.com
Upvotes: 3