views:

40

answers:

2

I need something like the slider control from jQueryUI, but I don't want to use the whole framework for only one control.

I tried searching Google but I get results for image sliders rather than the type of control I'm after. Perhaps there is another name for this kind of control?

I found only this

Which is exactly what I want, but it hasn't been updated in a long time, and I don't have the facilities to make sure it works in all browsers.

Thanks!

A: 

There isn't much to a custom jQuery UI download.

Plus, the files are available on Google's CDN.

jQuery

http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

jQuery UI

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js

jQuery UI Theme

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/smoothness/jquery-ui.css

Your end user may not even need to download anything new.

alex
Why use an old theme with the newer jQuery UI version?
Petah
@Petah Good point, but it hasn't affected any of my sites yet.
alex
It will if you use jQuery UI Buttons or Auto-Complete
Petah
Even the custom package is a little bloated considering it's just one control. I was wondering if there was any other solution (other than the one I mentioned) - if there isn't I guess I'll have to go with jQueryUI. It's not so much the bandwidth, but the page load delay.
Nick
A: 

You can customize your jQuery UI download to only include the things required for the slider

Petah