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:
-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
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,