Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

556
Visualizações
Is there any way to fetch data into Tabulator with POST method?

I am using Tabulator 4.6, and I have an API with POST method, and I want to fetch tabulator data through a POST request, not GET.

In my org.js is like:

var ajaxConfig = {
    mode: "no-cors",
    method: "POST", //set request type to Position
    headers: {
        "Content-type": 'application/json; charset=utf-8',
        "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content'),
        "Access-Control-Allow-Origin": '*'
    },
var ajaxParams = { key1: "value1", key2: "value2"};
var ajaxURL = "https://rest.com/api/listrobot";

function queryRealm(url, config, params) {

    return new Promise(function (resolve, reject) {
        $.ajax({
            url: ajaxURL,
            success: function (data) {
                //do some async data retrieval then pass the array of row data back into Tabulator
                //resolve(JSON.parse(data));
                resolve(data);
            },
            error: function (error) {
                //if there is an error call this function and pass the error message or object into it
                reject(error);
            }
        })
    });
}

My backend API URL "https://rest.com/api/listrobot" is returning JSON data, and I have tried with postman also.

In org.js(tabulator), when I tried using the GET method to fetch data, it works well when I changed it to POST accordingly API also it is not working.

Route::post('/listrobot',[OrgrobotController::class,'ReadRobot'])->name('list_robot');

I tried this URL with org.js(tabulator) throws Ajax load error statusText: "Method Not Allowed"

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can change the request method to POST using the ajaxConfig option

var table = new Tabulator("#example-table", {
    ajaxURL:"http://www.getmydata.com/now", //ajax URL
    ajaxConfig:"POST", //ajax HTTP request type
});
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda