Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7685 closed bug (notabug)

Slider Create Event Gives Empty Object For Callback

Reported by: michaelcordingley@… 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 8 years ago by Scott González

Resolution: invalid
Status: newclosed

It's supposed to be that way.

comment:2 Changed 8 years ago by michaelcordingley@…

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 8 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.