How to send/post data to a database?

Ask, and ye shall receive.
evo_fan
Posts: 2
Joined: 23:41, 24 Feb 2015

How to send/post data to a database?

Postby evo_fan » 23:46, 24 Feb 2015

Hi guys,

Just recently started using Evothings. Is there a tutorial or well-known way to send/post the collected data to a mongodb or mysql database server? I am using the client on IOS.

Thanks!

User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: How to send/post data to a database?

Postby micke » 15:52, 15 Mar 2015

Hello,

Sorry for the extremely slow response on this one.

What you could use is standard web techniques for interacting with the database server. That would likely be based on using AJAX (XHR). jQuery is great for this.

Perhaps something like this could be used?

http://etoxin.net/blog/2013/07/09/mongo ... 0-minutes/

Another approach could be to implement a native Cordova plugin that handles the communication with the database server. This is more work to implement and maintain compared to the XHR-solution, and may not be any more performant in the end.

If you need to store local data the localStorage in HTML5 is very easy to use (this is not a database however, just mentioning in case it would be useful).

Let me know how it goes.

Best regards, Mikael


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 5 guests