Oh!! you are right. Thanks for your help. So careless of me. On Apr 11, 7:23 pm, "Patrick Cailly" <metronome.ba...@worldonline.fr> wrote: > One of your validate() call is failing > or one of the ageBoxes has not been initialized > > firebug would show ! > > Patrick > > ----- Original Message ----- > From: "Benson Fung" <benson.red...@gmail.com> > To: "Google Web Toolkit" <google-web-toolkit@googlegroups.com> > Sent: Monday, April 11, 2011 12:49 PM > Subject: Window.alert cannot be launched after making an ajax call > > > 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 > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > ----- > > Aucun virus trouv dans ce message. > > Analyse effectu e par AVG -www.avg.fr > > Version: 10.0.1321 / Base de donn es virale: 1500/3564 - Date: 10/04/2011
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.