Doesn't work. The generated HTML code:
<input id="keyword" name="keyword" onkeyup="ajax(URL('callback',
['keyword', 'stype'], user_signature=True),
'target');" type="text" />
Am Mittwoch, 19. März 2014 16:31:41 UTC+1 schrieb LightDot:
>
> Try:
>
> TD(INPUT(_id='keyword', _name='keyword', _onkeyup="ajax(URL('callback',
> ['keyword', 'stype'], user_signature=True), 'target');"), _name=
> "search_type")))
>
> Regards
>
> On Wednesday, March 19, 2014 1:59:38 PM UTC+1, Mike Constabel wrote:
>>
>> Hi,
>>
>> in a form i have
>>
>> TD(INPUT(_id='keyword', _name='keyword', _onkeyup="ajax(URL('callback',
>> ['keyword', 'stype']), 'target');"), _name="search_type")))
>>
>> If a text is entered, callback is called an some text is displayed in
>> target. This works.
>>
>> But now I want to sign the URL.
>>
>> If I add @auth.requires_signature() to callback function, it no longer
>> works. The ajax call must be signed.
>>
>> @auth.requires_signature()
>> def callback():
>> return P("foo")
>>
>> But how can I add "user_signature=True" to the code above so that the
>> ajax call will be signed?
>>
>> Regards,
>> Mike
>>
>
--
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.