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;