Hi Guys, great site.
I'm hoping someone can help me out with this as I'm tearing my hair out. I keep getting a script error for my site mbfiresafety.com when opened in internet explorer. I've spent days altering code and I can't figure out where I'm going wrong. I'd really appreciate it if someone could help me out.
This is the error I'm getting;
Unable to get value of the property 'getElementsByTagName': object is null or undefined
index.php, line 20 character 2.... which is this line: var sfEls1 = document.getElementById("catmenu").getElementsByTagName("li");
I don't think that the error is in the css, I think it's got to do with IE interpreting the jscript. I'm not sure though. I used to script when I was a kid and I'm trying to pick it up as I go along now.
Thanks for your help
I'm hoping someone can help me out with this as I'm tearing my hair out. I keep getting a script error for my site mbfiresafety.com when opened in internet explorer. I've spent days altering code and I can't figure out where I'm going wrong. I'd really appreciate it if someone could help me out.
This is the error I'm getting;
Unable to get value of the property 'getElementsByTagName': object is null or undefined
index.php, line 20 character 2.... which is this line: var sfEls1 = document.getElementById("catmenu").getElementsByTagName("li");
I don't think that the error is in the css, I think it's got to do with IE interpreting the jscript. I'm not sure though. I used to script when I was a kid and I'm trying to pick it up as I go along now.
Thanks for your help