cordova - JQuery Mobile and Phonegap - not getting any JQuery Mobile css effects -
i trying write appw ith both jquery mobile , phonegap(cordova).
so far phonegaps behaving fine , can simple animations plain jquery. want make use of jquery mobiles styling abilities, eg:
<div data-role="header">
however, none of comes through. perhaps have set wrongly? ive compared sample projects , seems fine.
the header div should have ios looking black bar gradient, appears unstyled. can point me in right direction?
my code is:
<!-- jqm css--> <link rel="stylesheet" type="text/css" href="css/jqmcss.css" /> <!-- normal css--> <link rel="stylesheet" type="text/css" href="css/styles.css" /> <title>my app</title> </head> <body> <div data-role="page"> <div data-role="header"> <h1>program</h1> </div><!--header--> <!--other divs--> </div><!--page--> <script type="text/javascript" src="cordova-2.7.0.js"></script> <script type="text/javascript" src="js/jquery.min.1.9.js"></script> <script type="text/javascript" src="js/jquery.mobile.min.js"></script> <script type="text/javascript" src="js/myscripts.js"></script> <script type="text/javascript"> app.initialize(); </script> </body>
this common problem , can occur in situations:
incompatible jquery , jquery mobile versions
because have renamed jquery mobile files cant confirm problem in case. jquery mobile developers have locked framework jquery versions. fir example, if use jquery mobile 1.2 jquery 1.9+ not work , pages not styled.
so in case go official site , download latest 1.3.1 jquery mobile files.
incompatible jquery mobile js , css files
this error similar previous case. jquery mobile strict content.
again go official site , download these files:
minified: jquery.mobile-1.3.1.min.js
minified default theme: jquery.mobile-1.3.1.min.css
Comments
Post a Comment