Whoops, small bug. I fixed it and updated the slice. Respone.files is just a quick way to include the necessary files. You could just as easily put them in your view. I think response.files is part of the experimental plugin framework so it may change. The jQueryUI slider takes a min and max that you can match up to your validator for different ranges. You can see other options here:
http://jqueryui.com/demos/slider/ On Nov 3, 6:59 pm, Richard <[email protected]> wrote: > Thanks! I am learning a lot from your slices - I hadn't used > response.files or widgets yet. > > I tried the example but just the input box was rendered and I found I > needed to add "default=50" for it to work. > Does it work for you without a default value? > > For my use case I fortunately need a value 0-100, but what about for > an arbitrary range? > The slider would need to take "min:0, max:10" arguments - could those > values come from IS_INT_IN_RANGE()? > > On Nov 4, 9:35 am, "mr.freeze" <[email protected]> wrote: > > > A little of both :) > > > On Nov 3, 4:34 pm, Richard <[email protected]> wrote: > > > > nice! > > > Did you make that slice in response to my question, or extracted from > > > your own project? > > > > On Nov 3, 4:58 am, "mr.freeze" <[email protected]> wrote: > > > > > Here is an example using the widget method: > > > > >http://www.web2pyslices.com/main/slices/take_slice/20 > > > > > On Nov 2, 1:34 am, Boris Manojlovic <[email protected]> > > > > wrote: > > > > > > I would suggest something like this (pseudo code) > > > > > > $('#table_integer').hide().append('<div id="myslider" />'); > > > > > $('#myslider').activateslider(return val to $(#table_integer).val ); > > > > > // or how ever it works... > > > > > > On Mon, Nov 2, 2009 at 5:41 AM, mr.freeze <[email protected]> > > > > > wrote: > > > > > > > You can create a widget that has the slider div ,a hidden input, > > > > > > and a > > > > > > script that puts the value of the slider in the input during the > > > > > > slidestop event on the slider. > > > > > > > On Nov 1, 7:44 pm, Richard <[email protected]> wrote: > > > > > >> Hello, > > > > > > >> I want to use a slider widget (http://jqueryui.com/demos/slider) > > > > > >> for > > > > > >> integer input in my form. > > > > > >> web2py uses an INPUT text box for integer input but the UI slider > > > > > >> widget expects a DIV and does not work with an INPUT box. > > > > > > >> So, how do you recommend I get my FORM working with the slider > > > > > >> widget? > > > > > >> Can I somehow override the rendering of the integer input box to > > > > > >> use a > > > > > >> DIV instead? > > > > > > >> Thanks, > > > > > >> Richard > > > > > > -- > > > > > "Only two things are infinite, the universe and human stupidity, and > > > > > I'm not sure about the former."-Albert Einstein --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

