I am working with webservice GetEmployeebyId, I get the object data and I would like to display it in a list using javascript in aspx page.
Please help me !!
here my code : it miss the function that display the object
**
<script>
$(document).ready(function () {
$.ajax({
type: 'GET',
url: _spPageContextInfo.webAbsoluteUrl + '/_vti_bin/EmployeeService.svc/GetEmployeebyNom/kmjdfb', // Location of the service
contentType: 'application/json; charset=utf-8', // content type sent to server
processdata: true,
success: function (msg) {
datasource:msg
}
});
});
</script>**
my object "msg" is found in this picture