Use Sql in cocoonjs

Get help using Construct 2

Post » Tue Feb 25, 2014 3:53 am

Hi everybody, I want to know is there any way to use database on server like mysql in my game and publish with cocoonjs?
thanks alot.....
B
4
Posts: 23
Reputation: 850

Post » Tue Feb 25, 2014 8:56 am

C2/cocoonJS projects are executed in javascript, client-side. SQL is server side. So no, you can't use SQL calls right from C2.

But you can use the AJAX object to send and pull data from URLs. Doing so, you can send data to your server where, server-side, you will be able to use SQL and then send data back.
B
17
S
8
G
4
Posts: 473
Reputation: 6,191

Post » Wed Feb 26, 2014 6:14 am

thanks a lot Guizmus, but i think ludi ( cocoonjs) don't support Ajax. Is there another way to send or resive data to server with ludi ( cocoonjs) ?
B
4
Posts: 23
Reputation: 850


Return to How do I....?

Who is online

Users browsing this forum: Armench, Artcadev, farsen and 12 guests