[Seaside] JQuery Slider
Timothy James Ziebart
timothy at churchmilitant.org
Wed May 19 21:41:52 UTC 2010
I understand the updating of the values but the rendering is what is
getting me. How can I update screen to display the values as they are
changing? Or am I missing something?
On 10-05-19 02:15 PM, Lukas Renggli wrote:
> What about adding something along the following lines to your AJAX call:
> script: [ :script |
> script add: (script jQuery id: 'pricemax'; value: model priceMax).
> script add: (script jQuery id: 'pricemin'; value: model priceMin) ]
> On 19 May 2010 22:44, Timothy James Ziebart<timothy at churchmilitant.org> wrote:
>> Hi all, looking for some suggestions. I have implemented the following
>> html div id: 'o_left';
>> html textInput id: 'pricemax'.
>> html textInput id: 'pricemin'.
>> html div script: (html jQuery new slider
>> range: true;
>> step: 50000;
>> min: 0;
>> max: 5000000;
>> values: prices;
>> orientation: 'horizontal';
>> onSlide: (html jQuery ajax
>> callback: [:value | |var|
>> var := value findTokens: ','.
>> model priceMax: (var at: 2) asNumber.
>> model priceMin: (var at: 1) asNumber.
>> value:(html jQuery this slider option: 'values')))].
>> The slider has two handles and with the above code does update the priceMax
>> and priceMin successfully. Where I am having troubles is how to implement
>> the updating of the two html text inputs while sliding. I am still trying
>> to get a better understanding of JQuery and its implementation in Seaside
>> Thank you for the help.
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
More information about the seaside