Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Unable to pragmatically initiate rangeslider #6644

Closed
gcoop opened this issue Oct 23, 2013 · 5 comments
Closed

Unable to pragmatically initiate rangeslider #6644

gcoop opened this issue Oct 23, 2013 · 5 comments

Comments

@gcoop
Copy link

gcoop commented Oct 23, 2013

Unable to initiate the rangeslider independently of page creation using the slider construct.

http://jsfiddle.net/dWnnL/1/

Following error occurs Uncaught TypeError: Cannot read property 'slider' of undefined

@jesperveldhuizen
Copy link

Try something like this:

$('<form><div id="slider" data-role="rangeslider"><label for="range-1a">Rangeslider:</label><input name="range-1a" id="range-1a" min="0" max="100" value="40" type="range"><label for="range-1b">Rangeslider:</label><input name="range-1b" id="range-1b" min="0" max="100" value="80" type="range"></div></form>').appendTo('.ui-page').trigger('create');

Fiddle: http://jsfiddle.net/dWnnL/2/

@gcoop
Copy link
Author

gcoop commented Oct 24, 2013

Bingo, thanks @jesperveldhuizen that get's around the problem :)

@bgyhnddr
Copy link

Problem will show in jquerymobile1.3

@Ruffio
Copy link

Ruffio commented Oct 29, 2014

Can't this be closed? There is no issue here as far as I can tell.

@arschmitz
Copy link
Contributor

@Ruffio yes this was fixed and the issue never updated closoing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants