ochojoneso
1/7/2019 - 12:56 AM

Ajax-Call-Return-Join

// Admin Dashboard URL
var mesAdmin = "https://mycenturylinkonline.net/mes/GO/Project-Dashboard";
// Project Parent List
var mesProject = "/_api/Web/Lists/GetByTitle('Project-Database')/Items?" +
                 "$select=";


   $.ajax({
      url: mesAdmin + mesProject,
       type: "GET",
       headers: {
           "accept": "application/json;odata=verbose",
       },
       success: function (data) {
           // console.log(data.d.results);
           var items = data.d.results;
           outagesSuccess(data);
           
       },
       error: function (error) {
           alert(JSON.stringify(error));
         }
         });
         },
        outagesSuccess = function (data) {
        var html = [];
        var results1 = data.d.results;
        _.each items, (item)-> item.doSomeStuff()
      }
      $('#containercust').html(html.join(''));