Richard,
I only have to pass user input value to controller function which will
further save or update to the database, like in this case i want to
save/update record name value which user can change from UI so i need to
pass this updated value back to controller and controller function will
save back this value to db.

On Wed, Aug 29, 2012 at 7:26 PM, Richard Vézina <ml.richard.vez...@gmail.com
> wrote:

> You need to make ajax call... There is web2py ajax, but you may need
> something more powerfull : jQuery.ajax().
>
> I assume that if you need to pass data back to controller function it
> because you want to display or modified your form base on the input value...
>
> I will need more information in order to help you and I may be not the
> best at this, but there is surely more experienced user that will help.
>
> Would you show you call back function and explain what you want to do once
> you have pass the input value to this function.
>
> Richard
>
>
> On Wed, Aug 29, 2012 at 6:18 AM, Amit <amit.khaw...@gmail.com> wrote:
>
>> Hi,
>> I have to send textfield value from html to controller function, how to
>> achieve it, please see the code below :
>>
>> <input value="Save" type="button" name="save_button"
>>
>>    onClick = 'window.location="{{=URL('default', 'record_config
>> ',args[])}}";'>
>>
>>
>>
>> I have one text field on html page named record name, user can input the
>> name of the record which I want to pass to the record_config() function of
>> default.py but i am unable to do so because if I directly put in args
>> something like this args[record_txt_field.value] it is throwing error
>> saying "name record_txt_field not defined", it seems like we can't use
>> directly text field name inside python code so how to pass the value of
>> text field as an argument to the record_config function.
>>
>> Please help me resolve this issue.
>>
>> --
>>
>>
>>
>>
>
>  --
>
>
>
>

-- 



Reply via email to