Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery why some of my icons start looking incorrect

I use jQuery mobile on my app, Everything was ok but I just noticed that these two items below does not look correct anymore.

First one is a selection and there used to be a small arrow instead of that empty gray circle.

And second is the spinnig wheel there used to be the animation wheel now there is an empty gray circle..

Dont know which part of code change really effected this, any ideas?

enter image description here

enter image description here

like image 422
Spring Avatar asked Apr 02 '13 10:04

Spring


2 Answers

Mayu Mayooresan answer is correct for using CDN-Hosted jQuery-Mobile.

If you want to Host it locally, download jQuery Mobile, extract the files to folder /js/. The structure should look like this:

HTML files, directly in root folder

webapp/Index.html

Scripts under root/JS folder

webapp/js/jquery.mobile-1.3.0.min.css

webapp/js/jquery-1.8.2.min.js

webapp/js/jquery.mobile-1.3.0.min.js

Images under root/JS/images/ folder

webapp/js/images/ajax-loader.gif

webapp/js/images/icons-18-black.png

webapp/js/images/icons-36-black.png

webapp/js/images/icons-18-white.png

webapp/js/images/icons-36-white.png

In your HTML file:

<head>
 <link rel="stylesheet" href="js/jquery.mobile-1.3.0.min.css" />
 <script src="js/jquery-1.8.2.min.js"></script>
 <script src="js/jquery.mobile-1.3.0.min.js"></script>
</head>
like image 148
Omar Avatar answered Nov 15 '22 11:11

Omar


You are missing the reference to the images files. You need to get the images into your project. When you download the library as ZIP file you can find the folder which contains the images.

Else use CDN as below

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
like image 33
Jay Mayu Avatar answered Nov 15 '22 10:11

Jay Mayu