Yesterday I spent two hours analyzing this issue, which of course I had only with Internet Explorer…
As the background: I wrote a library that would make a table sortable and paginable. I decided to use prototype.js and script.aculo.us. I tried to test the result not only in Firefox which I use by default, but then I simply forgot… Then, when I run the page I got the error:
Microsoft JScript runtime error: Object doesn’t support this property or method.
At the end of the day, (after cutting JavaScript files into slices) I found the reason. All because I created HTML elements like follows (this example uses Builder of script.aculo.us):
$(this._sPaginationSecId).appendChild(Builder.node('span', { class: 'disabled' }, '<'));
If you look at that closer, you will find out that class is not put inside apostrophes (‘). Changing the above snippet to the one below will solve the case:
$(this._sPaginationSecId).appendChild(Builder.node('span', { 'class': 'disabled' }, '<'));
Important!
Be careful with defining properties like href and class with Builder.node() (of script.aculo.us) and new Element() (of prototype).
It’s also possible to define class name of a DOM object created with prototype.js or script.aculo.us using className as a parameter (instead of od 'class'):
$(this._sPaginationSecId).appendChild(Builder.node('span', { className: 'disabled' }, '<'));
![Microsoft JScript runtime error: Object doesnt support this property or method. Photo Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=63521392-06fa-4e48-a493-ec53f80a9d01)

