You need form and its submitting.
You can use Web2py form support, see web2py.com/book chapter 7:
   FORM,
   or SQLFORM.factory (you have to save yourselves the input value after 
the form validation from forms.vars into db database)
   or SQLFORM (this will save the input value automatically)

Both SQLFORM's will generate the input element, so you need learn how to 
modify its attributes (autofocus...) via Web2py or you can manipulate the 
attributes via javascript (jQuery).

With FORM you define all elements in the view. So manipulating with field 
attributes is easy, but you have more work to do. + you need save form.vars 
too.





Dne úterý 12. července 2016 10:43:07 UTC+2 pbt napsal(a):
>
> in models
> db.define_table('list'
>                          Field('name','string'),
>                         Field('location','string')
>                         )
>
> <input id="location" class="autocomplete" onFocus="geoLocation()" />
> I want to store the value present in the above input field to 'location' 
> field in table 'list'.
>
>
>

-- 
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.

Reply via email to