I've been messing around with this for some time now and can't figure out the iss开发者_如何学编程ue...
Can anyone tell me why this slider won't slide fully to the end (right hand side)? I presumed it was because I didn't have MAX set, but then also max doesn't work, because (presumably) I'm using a 3D array for the values?
Any help appreciated, here's the link: http://statzone.co.uk/slider.php?home=Adelaide&away=Gold%20Coast
I see this error:
Firebug console or Chrome console (which is above) is very useful in debugging your javascript
The reason is the code is trying to read outside of "values array" length i.e ui.value is >50. e.g. just put these two alerts inside of your slide callback and you will see it.
alert(ui.value);
alert(values[ui.value]);
I don't have a solution but let me see if I can find one.
Update 1:
try setting the min and max values:
value: 23,
min: 0,
max:49,
精彩评论