Internet explorer says Object doesn't support this property or method
debugging, javascript, jquery, mootools
Solution
In case you are landing on this page while desperately searching for why you have this error in IE, allow me to point out another way this can happen. Hopefully, either the mere act of me posting this will help me remember this, or this question will show up in google the next time I run into this error. It seems to happen at least every 2 years.
This can show up if you've named a variable (Not sure if it has to be global, mine was this time) the same thing as an element's ID. For instance:
<div id="foo">
</div>
<script type="text/javascript">
var foo = 1; < --Object doesn 't support this property or method!!
</script>
Problem
This line is 79: ``` window.addEvent('domready', function(){ mySlide = new Fx.Slide('advert'); mySlide.hide(); }); ``` It also does not like this line: ``` this.wrapper = new Element('div', { 'styles': $extend( this.element.getStyles('margin'), {'overflow': ''} ) }) .injectAfter(this.element) .adopt(this.element); ``` Does anyone know why this happens? Does anyone know how to fix this? I am using jQuery and Mootools.. and wanted a solution.