Use variable name on Ajax data Post

0 favourites
  • 4 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • I need to send data on a variable as if I was doing

    "http://myurl/maps?map=mapdata"

    in order to receive it on my server as

    map: mapdata

    Is there any way to do this?

    That's how i'm using it

    <img src="http://img706.imageshack.us/img706/9765/yzm1.png" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • JSON can't be passed as a query string, unless serialized in the proper format. But you probably shouldn't do that for large objects, like big map arrays, since you will most likely exceed the request length limit.

  • Yep i know i cant pass json as a query string, but maybe there was some way to send 'data' on a variable. But you are right even if that was possibly, maybe it exceed the query string length limit.

  • I just solved in this way

    <img src="http://img560.imageshack.us/img560/7310/3efr.png" border="0" />

    I don?t like the solution but it that way I got all data from my array came under the map parameter.

    It would be great if anyone knows a better way to accomplish this, share it.

    There was no problem with the size of json, I tried [150, 150, 5] size and there was no problem.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)