1

I have a page that performs many ajax requests and a button that uses ajax for that page.
I want the button to give an alert when the ajax on the first page finishes.

But i get the response right away (while ajax requests on other page keep runing).
The first page is built from JS only.

Is this possible?

Nir Tzezana
  • 2,275
  • 3
  • 33
  • 56
  • Not possible to answer without seeing the code. How are you checking if all ajax has completed? – Subir Kumar Sao Apr 01 '14 at 15:31
  • Um, wouldn't it be so simple as: your loading script: `var loaded = false; ajax({success: (){ loaded = true }});` your check script: `if (loaded) alert('yay')` – eithed Apr 01 '14 at 15:32

0 Answers0