3.0 beta 2

onControlXXXXting/ed events double firing .....

I just realized, what I think is an event firing twice , based on Tim's request /javascript.forum.21138.2/how-do-i-press-a.html reproduced in a testing sample:
var InpA = new AW.UI.Input;
InpA.setId("InpAid");
InpA.onControlValidating = function(event){ 
alert('onControl ??? fired');
LabA.onControlClicked();
} 
document.write(InpA);

var LabA = new AW.UI.Label;
LabA.setId("LabAid");
LabA.setControlText("Search");
LabA.setControlImage("search");
LabA.onControlClicked = function(){
alert('Label Clicked')
}
document.write(LabA);


-onControlValidating and onControlValidated (fires double alerts ( I think caused by losing focus)
-onControlEditStarted fired just once, (but after the first keeps focus?)
-onControlEditEnded and onControlDeactivated works as expected :-)

Thanks
Carlos
November 1,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.