AJAX post call with JSON data

Get help using Construct 2

Post » Fri Feb 01, 2013 6:32 pm

Guys,

What is the proper way to make an ajax post call to an url with jsonData like

{ "my_name": "superman" }


Right now I'm using something like
Ajax post ->
tag - foo
url - http://myurl/parser.php?my_name=superman
data - ""

Which obviously means my parser.php needs to reconstruct that url into a json.


Is there a better way?

thanks,
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Fri Feb 01, 2013 8:08 pm

Alrightly, found it.. sending jsons via variables.

Thanks :)
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, randomly, spcsmrf and 27 guests