question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing support for ajaxMethod

See original GitHub issue

currently only GET is available. Here’s one solution at line 1360

-			type: "GET",
+			type: self.options.ajaxMethod?self.options.ajaxMethod:"GET",

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
olifolkerdcommented, Dec 11, 2016

Due to popular demand Tabulator can now make ajax requests with any HTTP request type.

There are two ways of doing this, if you are defining the request url when building the table using the ajaxURL option, then you can set the request type using the ajaxType option:

$("#example-table").tabulator({
    ajaxURL:"http://www.getmydata.com/now", //ajax URL
    ajaxParams:{key1:"value1", key2:"value2"}, //ajax parameters
    ajaxType:"POST", //ajax HTTP request type
});

If you are triggering the request using the setData function, then you can pass the type in as an optional third argument:

$("#example-table").tabulator("setData","http://www.getmydata.com/now", {}, "POST"); //make a post request

Full details on how to use this functionality can be found in the Ajax Documentation

0reactions
genius257commented, Dec 7, 2016

Many thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

missing : after property is ajax request - Stack Overflow
You cannot perform = assignment in a JS object. You must use the : operator. data: { id : $("#clientList").val() },.
Read more >
Many AJAX requests are missing from data explorer/query ...
Many AJAX requests are missing from data explorer/query builder · The URL hash changes (usually using window.location.hash ). · A popstate event ...
Read more >
.ajaxError() | jQuery API Documentation
When the user clicks the button and the Ajax request fails, because the requested file is missing, the log message is displayed. All...
Read more >
Invalid Web Service Call Error - JQuery Post to a WebMethod
The web method expects a name parameter but the first AJAX request does not send a name parameter. It is a bit baffling...
Read more >
The response data is missing from the ajax request error ...
This issue occurs, when the plugin sends the search query to the server, but does not get back anything. In most cases it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found