jquery / jquerymobile.com

jQuery Mobile web site content
http://jquerymobile.com
Other
54 stars 65 forks source link

Builder for just slider doesn't work #68

Closed SamHasler closed 10 years ago

SamHasler commented 10 years ago

Steps to reproduce:

  1. go to http://jquerymobile.com/download-builder/
  2. Make sure 1.4.2 is selected (currently it's the default)
  3. Find the slider checkbox and check it.
  4. Download the zip
  5. Create a page with the js/css from the zip, and a slider from http://demos.jquerymobile.com/1.4.2/slider/

Example page:

http://jsbin.com/acIRUBo/72/edit

I've just removed the jquerymobile js and pasted in the js from the zip and a slider. I see the native slider in Chrome and IE11.

gabrielschulhof commented 10 years ago

You need to instantiate the slider widget by hand if you just download the slider widget, because you need page and autoinit if you want jQuery Mobile to instantiate it for you.

Look at http://jsbin.com/acIRUBo/73.

There's still a problem, however, because the input isn't degraded to a text input, and the slider does not handle the mouse for some reason.

I've moved this issue to jquery/jquery-mobile#7383.

SamHasler commented 10 years ago

Thanks, that's very helpful.

As far as I can tell instantiation for partial builds isn't documented anywhere. There should probably be a separate issue for that too.

(It would have been helpful if it tells you on the build page when you only have a partial build selected)

SamHasler commented 10 years ago

@gabrielschulhof The slider on this doesn't appear to work: http://jsbin.com/acIRUBo/73. I can't drag it or click on the track to move it.

I've modified it here: http://jsbin.com/acIRUBo/77/edit and it responds to clicks on the track, but the handle can't be dragged with the mouse or touchscreen.