posted 13 years ago
Hi,
I am trying to display a status after making an ajax call, the following is the code fragment.
submitButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub;
for(int i = 0 ; i < ageBoxes.length ; i++) {
ageBoxes[i].validate(); //ajax call
}
Window.alert("Finished!");
}
});
submitButton is a button. ageBoxes is an array of TextBox. When the submit button is clicked, this click handler will be triggered and make ajax call(validate) for all the TextBox. The ajax call can be triggered successfully, however, the Window message box cannot be launched for some reasons.
Can anyone give me ideas why the message box cannot be popped up after making a series of ajax call?
Thanks