Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. function onpageLoad()
  2. {
  3. getdepartflights(1,2);
  4. getreturnflights(1,2);
  5. }
  6.  
  7. function getdepartflights(flightID, flightType) {
  8. PageMethods.getFlights1(flightID, flightType, OnGetMessageSuccessdepart);
  9. }
  10. function getreturnflights(flightID, flightType) {
  11. PageMethods.getFlights2(flightID, flightType, OnGetMessageSuccessreturn);
  12. }
  13.  
  14. var processor = setInterval(function () {
  15. alert("inside");
  16. searhflightsdepart(i);
  17. clearInterval(processor);
  18.  
  19.  
  20.  
  21.  
  22. }, 100);
  23.  
  24. var processor2 = setInterval(function () {
  25. alert("insidereturn");
  26. searhflightsreturn(i);
  27. clearInterval(processor2);
  28.  
  29.  
  30.  
  31.  
  32. }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement