How do I work with json and AJAX object

Get help using Construct 2

Post » Tue Aug 19, 2014 8:00 pm

Hello there,

I am a beginner with construct 2. I want to know how to work with json data received/posted using AJAX object.

I come from a javascript background, where I can hold the json output in the memory and work with them as objects. and I wonder if there is a way in C2 to handle json in the same way javascript does.

Also, while posting data to AJAX url, how I can send a json object to url.

I searched for a solution for this and it got me nowhere, may be because I am not really familiar with the board yet. so I would appreciate it if anybody can help me here.

Thanks folks.
B
4
Posts: 3
Reputation: 211

Post » Wed Aug 20, 2014 11:46 am

any help here ??
B
4
Posts: 3
Reputation: 211

Post » Wed Aug 20, 2014 11:51 am

I'd recommend this excellent plugin: plugin-json-import-export-generate-edit-inspect_t100042

Basically you'd have event where you do AJAX request for JSON file. When that AJAX request completes, you'd load the AJAX.lastdata into the JSON object that comes with the plugin. With that plugin you can manage JSON data pretty smoothly.
B
24
S
9
G
7
Posts: 756
Reputation: 7,292

Post » Thu Aug 21, 2014 6:24 pm

Thanks a lot, that worked great (Y)
B
4
Posts: 3
Reputation: 211


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, MaxxMunnn and 5 guests