divertap's Recent Forum Activity

  • Yes, I've done that but it has the two of them now, not just de json. Anyways, I changed my server to get the url type. Thank you for your help

  • Okey so, first, thank you all for your help. It all seems to be working well, but I have an issue, when I change the header to "application/json", it looks like it is not changing the header, but adding it to it, so when I look in my server, the Content type i'm sending is: application/x-www-form-urlencoded, application/json, and it ruins all, is any way to remove this application/x-www-form-urlencoded?

  • So the Ajax POST element doesn't work for me?

  • And how do you send a string like that "{

    “email”: "string",

    “firstName”: "string",

    “lastName”: “string”,

    “nickname”: “string”,

    “position”: “string”,

    “score”: 0

    }"

    with the "post to url" ajax paremeter, i've set the "Set Request Header" to "content-type:application/json", but I don't know how to continue

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Okey, then I want to send some data like that: {

    “email”: “string”,

    “firstName”: “string”,

    “lastName”: “string”,

    “nickname”: “string”,

    “position”: “string”,

    “score”: 0

    }

    where all the string parameters were introduced by the user, and I don't know how to write this on the Data parameter of the Ajax function "POST", I'm doing this right know, but i think it isn't correct

  • Thank you, it was that, I was using version r136, I updated to r141 and there it is, thank you so much

  • Okey, I'll finally find it but, now I'm having the same issue with JSON. This are my plugins on the project

    and you can see here that JSON is not appearing when I try to add it

    please any clue? btw is in spanish, hope there's no problem since icons are the same

  • Yes but i click in add new type of object and it isn't on the menu with all the other plugins, what i am doing wrong?

  • I click in add new type of object but i can't see the JSON addon, what am I doing wrong?

  • How do I change the content-type of the post in ajax to:application/json, and how do I send this json to an URL later?

    Okey so, I made that, I'm assuming on the value field I have to write the data I want to post, but how I send this data to a URL? If I use the "post to URL" how I should use it to send the previous json?

    You saved me, thank you so much

divertap's avatar

divertap

Member since 24 Jul, 2018

None one is following divertap yet!

Trophy Case

  • 6-Year Club
  • Email Verified

Progress

7/44
How to earn trophies