How do I send Array.AsJSON to MySQL via AJAX

Get help using Construct 2

Post » Fri May 27, 2016 10:36 pm

Hello. I'm trying to save an data from an array as a JSON file to MySQL using AJAX. Is there a way to accomplish this with C2?

If not, I am thinking of constructing a string with array data and saving it to MySQL with AJAX. What is the maximum character length for a global variable in C2?

Also, what is the maximum length of a response that AJAX can handle in C2?

Thanks!
B
6
S
2
Posts: 18
Reputation: 536

Post » Tue May 31, 2016 3:44 pm

Not with C2 alone. You have to have some server side programming to make this happen.

I do not believe there is a max length of AJAX (at least not on POST data). GET requests do not technically have a limit, but each server is configured differently: http://stackoverflow.com/questions/2659 ... et-request
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

Post » Mon Jun 20, 2016 7:14 am

Thanks!
B
6
S
2
Posts: 18
Reputation: 536


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests