sendAJAX not calling server url, its working on another server

16 views
Skip to first unread message

Shaitan Singh Sisodia

unread,
Oct 1, 2018, 7:55:07 AM10/1/18
to CasperJS
Here is my code:
I am not able to get the data on given server url, this function is not calling the ajax url. Please advise me


   

     var data = {};

data.profileData = profileData;

data.extract_type = 'phoneix';

// send results to php page

    server = ""; // where  the data would receive
    
    var jsonObject_fields =  casper.evaluate(function(server, data){
      
   try {
             return JSON.parse(__utils__.sendAJAX(server, 'POST', data, false));
        } catch (e) {
console.log(e);
        }
  
 
  //  __utils__.sendAJAX(server, "POST", data);
    }, server, data);
return jsonObject_fields;
Reply all
Reply to author
Forward
0 new messages