Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82694

[Bug Report] dependent() when called with a object in fetch parameter, casts to string

$
0
0

Tested in Editor 1.9.2

Per the dependent() documentation, if you have an object in the fetch field:

As an object, this value is used as the options to make an Ajax request using jQuery's $.ajax() method. Please note that it is important you specify a url option otherwise the Ajax request will have nowhere to go! The format of the data submitted and the JSON data returned is discussed above.

However, the actual behavior experienced when passing the following object to dependent() is a request to "[object Object]".

{
  "url": "/Ajax/ClassOptions",
  "headers": {
    "__RequestVerificationToken": "..."
  },
  "data": {
    "__RequestVerificationToken": "..."
  }
}

Viewing all articles
Browse latest Browse all 82694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>