Masner
10/2/2017 - 5:09 PM

jQuery ajax volání kentico service

Pro volání service v CMSPages

$.ajax({
    url: url,
    data: JSON.stringify(data),
    type: 'POST', // nebo 'GET' a další
    contentType: 'application/json; charset=utf-8',
    dataType: 'json'
    success: function(data){
      // do something with data
    },
    failure: function(){
      // tell user, that request failed
    }
});