Need to add it to Playjax, in a way that' s inline with it's current API. Then add a demo code for this on the first page, below the JS6 fetch code demo.
⚠️ Note 1 that Playjax should not depend on jQuery, just generate the object needed for jQuery's ajax method.
⚠️ Note 2 The above ajaxData snippet should be updated to include the CSRF value, if one exists. See the Playjax code for how it's done for JS6.
At the moment, Playjax only supports
fetch
. We have code that makes it easy to use jQuery as well:Used like this:
Need to add it to Playjax, in a way that' s inline with it's current API. Then add a demo code for this on the first page, below the JS6 fetch code demo.
⚠️ Note 1 that Playjax should not depend on jQuery, just generate the object needed for jQuery's
ajax
method. ⚠️ Note 2 The aboveajaxData
snippet should be updated to include the CSRF value, if one exists. See the Playjax code for how it's done for JS6.