Sharepoint – Ler bibliotecas via REST API

Função jquery para ler bibliotecas do sharepoint via REST API. [javascript] $.ajax({ url: "http://<site>/_api/lists/getbytitle(‘<nome-lista>’)/items?$select=Title",       method: "GET",       headers: { "Accept": "application/json; odata=verbose" },       success: function (data) {             $.each(data.d.results, function (k, resultado) {                  console.log(resultado);             });    […]

Sharepoint – Ler biblioteca de páginas via REST API

Função jquery para ler biblioteca de páginas do sharepoint via REST API. [javascript] $.ajax({ url: "http://seu_site/_api/web/lists/GetByTitle(‘Páginas’)/items?$select=Title",          method: "GET",          headers: { "Accept": "application/json; odata=verbose" },          success: function (data) {                   $.each(data.d.results, function (k, resultado) {    […]

twitter-bootstrap

Bootstrap 3 Alert Dialog

Para exibir uma caixa de alerta customizada no bootstrap 3 utilize o código abaixo: JS [javascript] var jbkrAlert = (function () { var criarModal = function () { var modal = $(‘<div class="modal modal-alerta"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"></div></div></div></div>’); modal.modal(‘show’).on(‘hidden’, function () { $(‘.modal-alerta’).remove(); }); } var exibirAlerta = function (titulo, mensagem) { criarModal(); var conteudo =[…]

twitter-bootstrap

Loading Plugin Bootstrap 3

Função para exibir uma imagem de loading compatível com o bootstrap. JS [javascript] var jbkrAlerta; jbkrAlerta= jbkrAlerta || (function () { var pleaseWaitDiv = $(‘<div class="modal fade bs-example-modal-sm" id="modalLoading" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"><div class="modal-dialog modal-sm jbkr-loading"><p>Aguarde …</p><img src="data:image/gif;base64,R0lGODlhNgA3APMAAP////////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/gAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGF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U1RWV1hhTIWJiouMjVcFBjUGBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOwAAAAAAAAAAAA==" /></div></div>’); return { show: function () { pleaseWaitDiv.modal(); }, hide: function () { pleaseWaitDiv.modal(‘hide’); }, }; })(); [/javascript][…]