Skip to main content

Search and Top Navigation

#7685 closed bug (notabug)

Opened September 01, 2011 08:22PM UTC

Closed September 01, 2011 08:34PM UTC

Last modified September 01, 2011 09:15PM UTC

Slider Create Event Gives Empty Object For Callback

Reported by: michaelcordingley@gmail.com 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>

Attachments (0)
Change History (3)

Changed September 01, 2011 08:34PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

It's supposed to be that way.

Changed September 01, 2011 08:38PM UTC by michaelcordingley@gmail.com comment:2

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!

Changed September 01, 2011 09:15PM UTC by scottgonzalez comment:3

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.