MooTools Fx.Slide throwing this.element is null
Posted
by Brant
on Stack Overflow
See other posts from Stack Overflow
or by Brant
Published on 2010-03-05T19:33:07Z
Indexed on
2010/03/08
9:51 UTC
Read the original article
Hit count: 387
JavaScript
|mootools
The following code is throwing the error "this.element is null". However, the wid_cont is definitely grabbing an element.
window.addEvent('domready',function(){
var min = $(document.body).getElements('a.widget_minimize');
min.addEvent('click',
function(event){
event.stop();
//var box = ;
var wid_cont = ($(this).getParents('.widget_box').getElement('.widget_box_content_cont'));
var myVerticalSlide = new Fx.Slide(wid_cont);
myVerticalSlide.slideOut();
}
);
});
It's moo tools 1.2.4 and has the fx.slide included....
© Stack Overflow or respective owner