I've encountered code below and I'm not fully sure what it's achieving.
I think it invokes the service 'getvalues' and passes some data into the service. On success the data returned is processed. Is this correct ?
$.ajax({
url: 'getvalues',
data: ({urlVal : value}),
success: function(data) {
}
});