function debugContainer(id)
{
// properties
this.debugElement = document.getElementById(id)
this.message
this.state = "hidden"
this.setShow = function()
{
this.state = "hidden";
}
this.setHidden = function()
{
this.state = "showed";
}
// functions
this.clear = function()
{
this.message = "";
this.update();
}
this.addLine = function(text)
{
if(this.message)
{
this.message = this.message + ">> " + text + "
" ;
}
else
{
this.message = ">> " + text + "
";
}
this.update();
}
this.update = function()
{
this.debugElement.innerHTML = this.message;
}
this.show = function()
{
alert(this.debugElement.innerHTML);
}
this.wipein = function()
{
var wipeOut = dojo.lfx.wipeOut(this.debugElement, null, null, function(n)
{
alert(this.parent.state);
//if(this.state == "showed")
//{
// this.debugElement.innerHTML = "ich bin hidden";
this.state = "hidden;"
//}
//else
//{
// this.debugElement.innerHTML = "ich bin showed";
// this.state = "showed";
//}
});
var wipeIn = dojo.lfx.wipeIn(this.debugElement);
dojo.lfx.chain(wipeOut, wipeIn).play();
}
}