#7685 closed bug (notabug)
Slider Create Event Gives Empty Object For Callback
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.slider | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Specifically, the ui object comes back empty. Browser, is FF 6.0.1. Code snippets attached.
$('div.slider').slider({
min: 0, max: 100, create: function(event, ui) {
$(ui.handle).closest('td').next().find('input').val()
}, animate: "fast", slide: function(event, ui) {
$(this).closest('td').prev().find('input').val(100 - ui.value); $(this).closest('td').next().find('input').val(ui.value);
}
});
<table>
<tbody>
<tr>
<td>% Qualitative</td> <th>Qualitative Question Weight</th> <td>% Quantitative</th>
</tr> <tr>
<td style="text-align: center;"><input type="text" value="70" readonly size="3" /></td> <td><div class="slider"></div></td> <td style="text-align: center;"><input type="text" value="30" readonly size="3" /></td>
</tr>
</tbody>
</table>
Change History (3)
comment:1 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
Good to know. Could we then have that documented in the documentation for slider? It currently reads that all callbacks are provided with those objects.
And thanks for the quick response!
comment:3 Changed 11 years ago by
Ah, thanks. I just updated the docs at http://docs.jquery.com/UI/API/1.8/Slider. The docs on jqueryui.com will update with the next release.
It's supposed to be that way.