I am developing application using phonegap in eclipse for android .I have created folder structure in assets->jquery.mobile folderI have put jquery library files jquery.mobile-1.0rc2.min.js etc.and assets->www folder put html files .I have include jquery library file in html
<script type="text/javascript" src="jquery.mobile/jquery-1.6.4.min"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-1.1.0.js"></script>
<script type="text/javascript" src="jquery.mobile/jquery.mobile-1.0rc2.min.js"></script>
In html file I have written code
<script type="text/javascript">
$( function() {
$('body').bind( 'taphold', function( e ) {
alert( 'You tapped and held!' );
e.stopImmediatePropagation();
return false;
} );
$('body').bind( 'swipe', function( e ) {
alert( 'You swiped!' );
e.stopImmediatePropagation();
return false;
} );
} );
I have added phonegap jar and put plugins xml file in xml folder can anybody tell what is problem how to resolve it?
Thanks
You’re missing
<\script>The following index.html runs successfully for me. (Note, I’m running with phonegap-1.3.0 and jquery-mobile-1.0, but I would expect the older versions to run fine for this program.)