jquery - Ajax Complete Problem -


I have a way that calls another method, which has some AJAX calls back over the internet .

  method () {Some wants to overwrite X, Y postings after setting some Ajax functionality poppipion (// //) after the method A set ... MetodhA () {AjaxCall (); X, y location}  

The problem here is to set the popup postian on Ax, Y space, but I want to overwrite x, y location in a different position after the phone Am I to MethodA The issue I'm experiencing here is my setpoupupostion in MethodB MethodA is being executed before.

I want to execute setupuppostion () only within MEthodB after the MethodA completion, please can you kindly advise me how.

The method is completing the A, though. You have AJAX Call and popup status settings in all of the method A. These two will be found and then method B will move forward. (Note method A AJAX is not waiting to complete the call. It is just starting.)

Callback generated by an AJAX call to an option, failure on success / failure on false and then Pass through that method B from Law B in Law B. You can wait for that return before continuing, or only if this is true, then continue.

  Function Method () {if (MethodA ()} {SetPopupPosition (); }} Function MethodA () {if (AjaxCall ()) {// You need to change your AjaxCall () true / incorrect setx popup to replace x, y space returns really; }     return false; }  

If you need help making your AJAX call return right / wrong, then update the question with your existing AJAX method and I will update it for you.


Comments