:: Forum >>

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 ?
Andrew
Monday, December 19, 2005
that's because setLocation is not an AW method, try setPosition in beta 3 or setControlPosition in beta 1 or 2.
Jim Hunter
Monday, December 19, 2005

This topic is archived.


Back to support forum

Forum search