Login Register

node has no properties

fadeOut doesn't work

I can't use dojo fadeOut.
Please, see my html:

Hide me!

Please, see my js:

function fadeOutDiv(){
        alert("fadeOutDiv()");
                //dojo.fadeOut({ //no func
                //dojo.style.getOpacity problem no function
        var div = dojo.byId("fadeOutDivId");
        div.style.opacity = 1;
        alert("Opacity 1 = " + div.style.opacity);
        alert("id 1 = " + div.id);
        dojo.lfx.html.fadeOut({
                node: dojo.byId("fadeOutDivId").domNode,
                duration: 2000
                }).play();
}

{solution found} dojo.fx.wipeOut() - node error

Hello Everyone...

Happy to discover your forums !
First, sorry if I post in the bad section, my english is not so good... ;-)
So I've a simple question for you, I hope someone'll have an answer for me !

I'm trying the dojo.fx.wipeOut(), but I've the following error : "node has no properties".
Here's my code :

dojo.require("dijit.form.Button");
dojo.require("dojo.fx");
var wipeOut = dojo.fx.wipeOut({node: "menu",duration: 1000});
var wipeIn = dojo.fx.wipeIn({node: "menu",duration: 1000});
var currentAnimation;

Syndicate content