• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Window.alert cannot be launched after making an ajax call

Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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



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?

Posts: 11445
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you get any errors? Did you try running in a debugger? Did you try using printf statements before and after the Window.alert call?
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
create, convert, edit or print DOC and DOCX in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!