Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI library and images

Basically, I have noticed that the jQuery UI library makes calls to images using url("images/abc.png") etc and so when using this library in my web app, I am getting alot of images, that are not found, which also seems to stall some of my pages.

Anyway, based on this, am I suppose to create a images directory to cater for these URL image calls and place all these images used throughout the jQuery UI library in this directory or does jQuery do something in the backend?

What is the correct way of using such libraries and ensuring that all required resources are found?

Is there any documentation that explains how this works?

like image 239
tonyf Avatar asked Aug 12 '10 01:08

tonyf


People also ask

What is jQuery UI library?

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications, or you just need to add a date picker to a form control, jQuery UI is a perfect choice.

Is jQuery UI still used?

Today, jQuery UI continues to be an important testbed for jQuery Core updates, helping the maintainer team spot bugs and interoperability issues that arise as the web platform evolves. With the launch of jQuery in 2006, web developers were able to access and manipulate DOM and CSS faster and easier than ever before.

Does jQuery UI include jQuery?

jQuery UI is a collection of GUI widgets, animated visual effects, and themes implemented with jQuery (a JavaScript library), Cascading Style Sheets, and HTML.

Is jQuery UI good?

It is a free and open-source library built on top of the jQuery JavaScript Library. Being lightweight, fast, and easy to use, jQuery UI is one of the most popular and powerful JS libraries to develop highly interactive web applications.


1 Answers

The images for jQuery UI are included in the download, just unzip it all and use the images folder that's included beside the .css you're already including.

Alternatively, if you're using one of the default themes you can include the CSS from the Google CDN and it'll pull the images from there. Here's the jQuery UI 1.8.4 blog post that has a link to each theme's CSS: http://blog.jqueryui.com/2010/08/jquery-ui-1-8-4/

For an earlier version just replace the version in the url, for example:

  • 1.8.4: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css
  • 1.8.2: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/base/jquery-ui.css
  • Latest 1.8: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css
  • 1.7.2: http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css

You get the idea, just put the appropriate version in :)

like image 185
Nick Craver Avatar answered Oct 04 '22 12:10

Nick Craver