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" <nat...@freezable.com> wrote:
> A little of both :)
>
> On Nov 3, 4:34 pm, Richard <richar...@gmail.com> 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" <nat...@freezable.com> 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 <boris.manojlo...@gmail.com>
> > > 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 <nat...@freezable.com> 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 <richar...@gmail.com> 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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to