Project

General

Profile

jquery-ui sliders not visible

Added by ecdowney almost 11 years ago

Hello. I am using jquery-ui. I am going through the demos on their web site and find that the slider demo does not appear when I use lighttpd-1.4.32. It works fine when I use Apache/2.2.24. All other demos work from either server, only the slider does not work. I have tried running both servers on both on Mac OS X 10.8.3 and CentOS 6.3; I have tried displaying with Chrome 26.0.1410.65 and Firefox 18.0; all combinations give the same result: the problem only occurs when running lighttpd web server. Would appreciate any ideas on how to figure this out. Thank you.


Replies (3)

RE: jquery-ui sliders not visible - Added by stbuehler almost 11 years ago

Check your mimetypes.

RE: jquery-ui sliders not visible - Added by ecdowney almost 11 years ago

Good catch! Yes, that's part of the story, thanks much. I added these to mimetype.assign and now at least I can see the slider, but still nothing happens when I click on it:

                                ".css"  => "text/css",
                                ".js"  => "application/javascript",

RE: jquery-ui sliders not visible - Added by ecdowney almost 11 years ago

Just FYI, the "rest of the story" was to make sure the min, max and step attributes of the slider were being set as integers. In my case, the numbers were actually strings, so passing them through parseInt() did the trick. I found this out with lots of googling which lead to this thread: http://stackoverflow.com/questions/11728079/jquery-ui-slider-cannot-call-method-addclass-of-undefined .

BTW, I've convinced my project to use lightttpd for our jquery-ui + fast-cgi apps instead of apache2. Score one more for lighttpd!

Thanks everyone.

    (1-3/3)