21 lines
No EOL
315 B
JavaScript
21 lines
No EOL
315 B
JavaScript
|
|
function increaseCounter(onSuccess, onError)
|
|
{
|
|
$.ajax(
|
|
{ url: '/counter'
|
|
, success: onSuccess
|
|
, error: onError
|
|
, type: 'POST'
|
|
});
|
|
}
|
|
|
|
function getCurrentValue(onSuccess, onError)
|
|
{
|
|
$.ajax(
|
|
{ url: '/counter'
|
|
, success: onSuccess
|
|
, error: onError
|
|
, type: 'GET'
|
|
});
|
|
}
|
|
|