I have a couple of questions about using databases with Jquery Mobile.
When you are building a Jquery Mobile application, do you use regular PHP/MYSQL for login and contact forms?
What would happen if the user did not have a connection to the internet?
Is there a way to “cache” a database?
Sorry if these questions seem silly, I am new to Jquery Mobile.
Thanks friends.
Edit: The contact form will only have 3 or 4 inputs. The form is simply a small feedback form.
You could use any Backend technology you wanted, PHP and MySQL are great for this. I prefer PostgreSQL over MySQL but that’s another debate.
As for client-side database you could use HTML5 Local Storage ( more on this here ), but for any server-side authentication / interaction you will need a internet connection.
For no internet connection IMHO I would show an error to the end user saying something like, “Services are not available” or “Please check your internet connection”.
For Offline Application use you could look into these ( I have not tried any of these )
How to check for internet connection ( What others have tried )