Skip to content

Instantly share code, notes, and snippets.

Avatar

Wilson-l-Silva

View GitHub Profile
View ajax_jquery_callback.js
function getAccountAjax(id, callback) {
$.ajax({
type: 'GET',
async: false,
contentType: 'application/json',
url: 'controller/get_objeto/' + id + '/' + metodo,
success: (function (objeto) {
callback(objeto, false);
}),
error: (function (erro) {