Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now that you understand how jQueryMobile works, let's work on integrating the features of PhoneGap and jQueryMobile to create applications.
Please note when you are using jQueryMobile with PhoneGap, there are three JavaScript frameworks, each bootstrapping on their own.
While all the frameworks provide their own bootstrap mechanism, it is best to bootstrap these frameworks in the following order:
This is shown in the following example:
<script>
//onDeviceReady is called when PhoneGap is initialized
function onDeviceReady() {
$(document).ready(function() {
//Call any jQuery functions here
});
}
document.addEventListener(deviceready, onDeviceReady);
</script>