On Sunday, January 18, 2015 at 7:37:59 PM UTC-8, Wes H wrote:
>
> Any issues with using jQuery?
>
Lack of experience :-} Thanks for the suggestions to try:
> In your controller:
> INPUT(_name='left', requires=[IS_NOT_EMPTY(), IS_HEXSTR()], _id=
> 'activation_left'),
>
> And in your view:
> <script>jQuery('#activation_left').width(50);</script>
>
This suggestion didn't seem to be working for me.
> You could also attempt to solve the root problem (css) by adding your own
> custom css that takes precedence over the included styles:
>
> In your custom.css:
> input.activation { width:50px; }
> and then in your controller:
> INPUT(_name='left', requires=[IS_NOT_EMPTY(), IS_HEXSTR()], _class=
> 'activation'),
>
>
This suggestion was able to change the visual size of the input box, but
allowed long strings to be entered, so it's part way there but ....
/dps
> On Friday, January 16, 2015 at 3:06:57 PM UTC-5, Dave S wrote:
>>
>>
>>
>> On Friday, January 16, 2015 at 12:03:56 PM UTC-8, Dave S wrote:
>>>
>>> As mentioned in my other thread,
>>> <URL:https://groups.google.com/d/msg/web2py/w1x7_uDGfJc/Ix2x8tO1qLwJ>
>>>
>>> I have a form with four inputs, which get pasted together to make the
>>> "actual input".
>>>
>>> Bootstrap is overriding my wishes to control the input size, making the
>>> fields much to big (each should be 4 characters). It is using it's idea of
>>> what input[type="text"] should look like, which coming out to 314 pixels.
>>>
>>>
>> Note that if I change the type to input["number'] (with a *_type =
>> "number"* in the controller) I get a smaller-but-still-too-big box, and
>> can't input hex digits A-F.
>>
>> /dps
>>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.