CopyPastor

Detecting plagiarism made easy.

Score: 0.8138625025749207; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2015-07-04
by Nishad Up

Original Post

Original - Posted on 2012-04-10
by Tarek



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Call second ajax from 'complete'
Here is the example var dt=''; $.ajax({ type: "post", url: "ajax/example.php", data: 'page='+btn_page, success: function(data){ dt=data; /*Do something*/ }, complete:function(){ $.ajax({ var a=dt; // This line shows error. type: "post", url: "example.php", data: 'page='+a, success: function(data){ /*do some thing in second function*/ }, }); } });
Here is an example:
$.ajax({ type: "post", url: "ajax/example.php", data: 'page=' + btn_page, success: function (data) { var a = data; // This line shows error. $.ajax({ type: "post", url: "example.php", data: 'page=' + a, success: function (data) { } }); } });

        
Present in both answers; Present only in the new answer; Present only in the old answer;