target=":eval" is for the ajax() function, not the A() helper. Instead, in 
your test() function, try:

response.js =  'jQuery(".flash").html("test2").slideDown();'

Anthony

On Thursday, January 2, 2014 7:41:08 AM UTC-5, Serbitar wrote:
>
> I have a controller like this:
>
> def test():
>     return 'jQuery(".flash").html("test2").slideDown();'
>
> and a view like this:
>
> {{=A("Testbutton", callback=URL('test'),target=':eval', _class='btn')}}
>
>
> When I push the button, nothing is happening.
>
> However this works in the view:
>
> <script>
> jQuery(".flash").html("test2").slideDown();
> </script>
>
> ("test2" is displayed right after loading the page).
>
> What am I doing wrong?
>

-- 
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/groups/opt_out.

Reply via email to