• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

ajaxStart method is working fine but ajaxComplete method does not work.

 
Ranch Hand
Posts: 1645
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing an example where ajaxstart method would load an image and message showing "Loading" until the ajax action is going on. As soon as the ajax action completes the image and message should disappear. The ajaxstart method is working as expected but on completion of ajax request the image and message are not disappearing but they still remains there. Below is the code:


thanks
 
Marshal
Posts: 67446
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set a breakpoint to see if the function is being called or not?
 
Monica Shiralkar
Ranch Hand
Posts: 1645
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Have you set a breakpoint to see if the function is being called or not?


Do you mean the loadallRecords function?

Yes,The function loadallRecords is called and it is successfully doing its functionality. The ajax request successfully populates the Div : stage with the price fetched from Spring controller.

However the issue is that ajaxStart is working while the ajaxStop is not working.
 
I like tacos! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic