Re: [Moo] Element menthods not available on IE8

56 views
Skip to first unread message

Sanford Whiteman

unread,
Nov 10, 2012, 12:54:54 PM11/10/12
to mootool...@googlegroups.com
It's much easier to get help if you put sample code in a jsFiddle, where we can run and edit it.

I can't look at your page source from my mobile, but my first question is: are you wrapping your elements in document.id('element_name') or using pure DOM methods? Without document.id() or $(), elements won't get the Mooishness in IE8, where natives aren't extensible.

Daniel Peraza

unread,
Nov 10, 2012, 11:11:21 PM11/10/12
to mootool...@googlegroups.com
I am aware of the document.id() stuff. Here is an outdated version of the script (I can't provide the updated one until Monday 12nd). Object tags are searched by invoking $$(). I already tried to assign unique ID values for every <object> element and then retrieve them by using document.id() to see if it works, but nothing seemed to happen, the IE 8 console didn't show the Mootools Element methods and was still complaining on invoking a method not available for that object.

Arian Stolwijk

unread,
Nov 11, 2012, 6:52:49 AM11/11/12
to mootool...@googlegroups.com
object elements don't get extended with mootools methods.

You could use the generic form: Element.getSize(myObjectElement).
Reply all
Reply to author
Forward
0 new messages