My .php code in a file "fetchvalues.php" looks like this:
echo json_encode(array($PostedDate.Places.$Company.$Designation.$ProjectDetails.$DesiredCandidate.$HRName.$HRContact.$Email));
This file is called by another file and the calling function looks like:
$(document).ready(function(){
$("#Edit").click(function(){
$.getJSON("fetchvalues.php?UpdateRecordID=" + $.cookie('UpdateRecordID'),
function(data){
// Data retrieved in concatenated form. So we will break it and store values in array.
var concatenatedvalues = new Array();
concatenatedValues = data;
alert(concatenatedValues);
});
});
});
The data is being returned successfully, but I am not following how get each array element through javascript. What modifications are needed in the above code?