jslider
jslider copied to clipboard
Got error "TypeError: Cannot call method 'split' of undefined"
Hi, First of all, this seem to be a great tool. Thanks for your work. But, I got an error "TypeError: Cannot call method 'split' of undefined", whenever I try to use it. Is there anything I missed? I am using jQuery 1.7.1, and UI 1.8.18. Thank you.
Would be nice, if you could send an example where this error happend.
Element with ID should be "input" tag, because slider basically is input
Oops, I actually got the error in the other jQuery addon, DateTimePicker. Whenever I clicked on datetimepicker element, it throws me the error, but only when I reference the jslider in the page. Conflict?
On Wed, Feb 29, 2012 at 11:19 AM, Egor Khmelev < [email protected]
wrote:
Element with ID should be "input" tag, because slider basically is input
Reply to this email directly or view it on GitHub: https://github.com/hmelyoff/jslider/issues/7#issuecomment-4242138
Sincerely,
James Liu [email protected]
I need an example to reproduce this error
You can use the same example I sent earlier ( also attached here just in case), and below is the information and download link for the DateTimePicker addon.
http://trentrichardson.com/examples/timepicker/
Thank you.
On Wed, Feb 29, 2012 at 12:00 PM, Egor Khmelev < [email protected]
wrote:
I need an example to reproduce this error
Reply to this email directly or view it on GitHub: https://github.com/hmelyoff/jslider/issues/7#issuecomment-4243025
Sincerely,
James Liu [email protected]
Attachments doesn't work on github. so please send me whole example with scripts and styles included, because its hard to download all the scripts that your example requires.
Sorry, I packaged everything in the attachment and also sent out your gmail this time. I also attached a couple screenshots here. And you should see two errors below:
- Uncaught ReferenceError: slider is not defined --> It seems the custom slider cannot find slider reference.
- Uncaught TypeError: Cannot call method 'split' of undefined --> you can reproduce this error by clicking either Start Date or End Date field.
Thank you.
[image: Inline image 1]
[image: Inline image 2]
On Wed, Feb 29, 2012 at 12:06 PM, Egor Khmelev < [email protected]
wrote:
Attachments doesn't work on github. so please send me whole example with scripts and styles included, because its hard to download all the scripts that your example requires.
Reply to this email directly or view it on GitHub: https://github.com/hmelyoff/jslider/issues/7#issuecomment-4243152
Sincerely,
James Liu [email protected]
Yes, this is a bug. Fast fix for you would be add value attribute with initial slider value to both inputs, and add empty hash to slider initialization, like this .slider({})
It does resolve the 1st issue, but the slider still doesn't work. I cannot move the pointer in the slide. Any idea about the issue 2? Appreciate your help again.
On Wed, Feb 29, 2012 at 12:45 PM, Egor Khmelev < [email protected]
wrote:
Yes, this is a bug. Fast fix for you would be add value attribute with initial slider value to both inputs, and add empty hash to slider initialization, like this .slider({})
Reply to this email directly or view it on GitHub: https://github.com/hmelyoff/jslider/issues/7#issuecomment-4243908
Sincerely,
James Liu [email protected]
jesus, just spent 30minutes beating my head on the wall. Anyway we can get this note up on http://egorkhmelev.github.com/jslider/ ?
To fix the bug, i had to do like that :
-> make the slider an input
-> set the type to "slider"
-> add a value (even 0 or what you want)
For example :
<input /> won't work correctly <input type="slider"/> same <input type="slider" value="5" /> WORKS !
I have having the exact same problem. This is my input: I'm also using a datepicker, but I've remove it and the error persists.
Same.
Christ. Was actually because of this: https://github.com/egorkhmelev/jslider/issues/53
You can use <input type="slider" value="5;6" id="wslider"/>
note the semicolon ;