On Sunday, March 22, 2015 at 10:32:07 AM UTC-7, Garry Smith wrote:
>
> Hi is their a way of returning an onclick funtion to a div.
>
> This is what I'm trying to return.
>
> onclick="jQuery('#id').val('{{=row.id}}');ajax('{{=URL('default',
> 'album')}}', ['id'], 'playlist');"row.album.
>
> I can get it to return but only as text, I need it to work as a function
> [...]
>
I have an example already posted at
<URL:https://groups.google.com/d/msg/web2py/KYaf_L36qKw/4JMUUttAHk4J>
which puts an ajax call in a button .
I think this is where I started:
<URL:http://www.web2py.com/books/default/chapter/29/11/jquery-and-ajax#The-ajax-function>
/dps
--
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.