Page 1 of 1

How to check for db connection

Posted: Fri Nov 30, 2012 4:40 pm
by Stavros

I have an app that connects with tiggzi db (that's fine so far thanks to the great
dev tool called TIGGZI !)

But what is the script that fisrt checks for db connection or even wifi connection ? before the user starts updating the db (or at least he thinks he does ...while there is no connection...)


How to check for db connection

Posted: Fri Nov 30, 2012 4:46 pm
by maxkatz

PhoneGap has API to check for connection status: http://docs.phonegap.com/en/2.2.0/cor...


How to check for db connection

Posted: Fri Nov 30, 2012 10:48 pm
by Stavros

Thank you Max!

...a little more help.. how to write the JS in an event...


How to check for db connection

Posted: Sat Dec 01, 2012 1:33 am
by maxkatz

There are code examples in the link I provided: http://docs.phonegap.com/en/2.2.0/cor...