3.0.0

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

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.