Yes. It works. My eyes fooled me as I copied and pasted from here:
https://github.com/mdipierro/web2py-recipes-source/blob/master/apps/04_advanced_forms/web2py.app.star_rating.w2p?raw=true
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fmdipierro%2Fweb2py-recipes-source%2Fblob%2Fmaster%2Fapps%2F04_advanced_forms%2Fweb2py.app.star_rating.w2p%3Fraw%3Dtrue&sa=D&sntz=1&usg=AFQjCNGNTAla49aKlN4ZP5xIS8mUQzg1sA>
The correction should be .process() in the controller.
Sorry and Thank you again Massimo. You rock!
On Sunday, February 7, 2016 at 12:45:36 AM UTC-5, Massimo Di Pierro wrote:
>
> In the other thread you were missing form.process() in controller. ;-)
> could it be the same problem?
>
> On Saturday, 6 February 2016 14:01:43 UTC-6, Ron Chatterjee wrote:
>>
>> I have the view like this using plugin and still didn't work (insert
>> values in the database). Any thoughts?
>>
>>
>> {{extend 'layout.html'}}
>>
>> {{=form}}
>>
>> <script>
>> $(document).ready(function() {
>> $("form").submit(
>> function() {
>> $("[name=rating]").removeAttr("disabled");
>> }
>> );
>>
>> });
>> </script>
>>
>>
>>
>> On Monday, February 11, 2013 at 5:08:43 AM UTC-5, Alan Etkin wrote:
>>>
>>> Here is the code that worked for me when added to the view. ...
>>>>
>>>
>>> Good catch, I should have added the .ready call to wait until the form
>>> element is available.
>>>
>>> The rating plugin worked without this. We could fix the plugin script so
>>> there's no need for the workaround.
>>>
>>>
>>
--
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.