One example of jQuery infinite loop, and sending of pure string:
function YoThisIsAtest() {
$.ajax({
url: 'test/testera',
type: 'POST',
data: { latitude: $('#Latitude').val(), longitude: $('#Longitude').val(), culture: $('#Culture').val() },
datatype: "text"
}).done(function (msg) {
if (!bolStop) {
$('#myResult').html($('#myResult').html() + "
" + msg);
YoThisIsAtest();
}
});
}
And C§ code should look like:
public string testera(double latitude, double longitude, string culture)
{
return "Some text";
}