Reputation: 810
I've just created a very simple native app (jquery-1.8.3.min.js ,jquery-mobile-1.3.2.min.js and jquery-mobile-1.3.2.min.css by making these libraries as local files) with HTML5 +JavaScript + Cordova , which can activate the native camera on a button click & save the clicked picture.I am trying to load the Jquery mobile Libraries and Css (i.e jquery ) in this file to make the UI appearance good . Including these scripts and style sheets in <head>
tag but its not loading . No changes in the Native App as from the basic Html and Javascript one.
Upvotes: 1
Views: 1542
Reputation: 810
It seems like i have found the solutuion for my problem. I tried the following libraries **jquery-1.8.3.js is compatible with **jquery-mobile-1.2.1.js and **jquery-mobile-1.2.1.css. I think that **jquery-mobile-1.3.2.js was not compatible with **jquery-1.8.3.js , thats why it was not fetching the css. Thought of sharing this , hope its helpful ! Thanks.
Upvotes: 2
Reputation: 657
A suggestion is to check to see if you are adding them to the correct "www" folder. They need to be added to the one in the platform > ios
, or platform > android
not to the one outside of the "platform" folder.
Upvotes: 1
Reputation: 454
Are you referencing them properly locally? If your structure is as follows;
index.html
-- jquery.css
-- jquery.js
You need the following in head:
<link rel="stylesheet" href="css/jquery.css" />
And this in body:
<script type="text/javascript" src="js/jquery.js"></script>
Let me know if this doesn't help and if so please share some more information and how you have referenced the files.
Upvotes: 0