Posting data from Cordova app to a server using jQuery

Creating the HTML5 form to post the data
Note that I will use jQuery Mobile so don’t forget to download the library and include the js and css files in your HTML and

<div data-role="page">
<div data-role="header">
<h1>Welcome To My Form Submit Example</h1>
<div class="ui-content" data-role="main"><form>
<div class="ui-field-contain"><label for="email"> <b>Email</b></label> <input id="email" type="email" name="email" /> <label for="comment"> <b>Comment</b></label> <textarea id="comment" cols="30" name="comment" rows="10"></textarea></div>
<input type="submit" value="Submit" data-inline="true" />
<div data-role="footer">
<h1>Developed by Tareq Assaf</h1>

Using javascript I will get the submitted data and post them to comment.php script where I will submit the comment to database using PHP with MYSQL

Continue reading

Using Cordova to build a cross-platform mobile application

Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.

When using the Cordova APIs, an app can be built without any native code (Java, Objective-C, etc) from the app developer. Instead, web technologies are used, and they are hosted in the app itself locally (generally not on a remote http server).

Continue reading