The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Ajax/Xhr/Fetch & data:action

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #245472
    Michael Mizner

    I’ve used jQuery’s .ajax plenty. One of the things I’ve used often is
    data: {
    "action": "submit_new_post"

    which references the php function that would give it data.
    The Question: in an regular xhr or better, es6’s fetch how do something similar to data:{action:php_function_thing}

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.