You can specify a change callback to the slider. See
http://docs.jquery.com/UI/Slider/slider#options (click the options tab, then
see 'change' near the bottom of the list)
- Richard
On Fri, Nov 21, 2008 at 1:05 PM, Luigi <[EMAIL PROTECTED]> wrote:
>
> This problem of mines is most probably just a basic issue to the eyes
> of initiated jquery users. Nevertheless it happears a puzzle to me.
>
> I have a page with a few lines which set a cookie:
>
> $(document).ready(function(){
> $("#numberSel").change(function() {
> $.cookie('number', $(this).val()); // set a cookie
> });
> });
>
> as I use a select which is written this way:
>
> <form action="" method="get">
> <select name="pippo" id="pippo">
> <option value="a">1</option>
> <option value="b">2</option>
> <option value="c">3</option>
> </select>
> </form>
>
> Such a page works fine: any time the select is used, the cookie is
> updated.
>
> Next, I have another page with a few lines that create a slider out of
> a select with the smart Filament Group Accessible Slider script.
>
> $(function(){
> $('select#letterSel').accessibleUISlider({width: 100, labels:
> 3});
> });
>
> which is coupled to such a select:
>
> <form action="#">
> <select name="pippo" id="pippo">
> <option value="a">1</option>
> <option value="b">2</option>
> <option value="c">3</option>
> </select>
> </form>
>
> This page also works fine: a slider is created, which flawlessy works.
>
> Here comes the issue.
> Please, how can I mix the two pages in order to have a slider which
> successfully sets a cookie?
>
> Many thanks
> Luigi
>
>
>
> ----
> [1]
> http://www.filamentgroup.com/lab/progressive_enhancement_convert_select_box_to_accessible_jquery_ui_slider/
>
>
>
>
>
>
>
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---