Element does not move on setLocation
var arrowDiv = new AW.HTML.DIV;
arrowDiv.setId("arrowDiv");
document.write(arrowDiv);
var mb = new AW.UI.MenuButton;
mb.setId("btn");
mb.setControlText("text");
mb.onClick = function(){
alert(1);
arrowDiv.setLocation(256, 86);
alert(2);
arrowDiv.refresh();
}
document.write(mb);
the second call to alert(2) is never reached somehow, but now javascript error is produced. how is it possible ?
what am I doing wrong ?
arrowDiv.setId("arrowDiv");
document.write(arrowDiv);
var mb = new AW.UI.MenuButton;
mb.setId("btn");
mb.setControlText("text");
mb.onClick = function(){
alert(1);
arrowDiv.setLocation(256, 86);
alert(2);
arrowDiv.refresh();
}
document.write(mb);
the second call to alert(2) is never reached somehow, but now javascript error is produced. how is it possible ?
what am I doing wrong ?
Andrew
December 19,