Thanks Derek! Although i went for another approach:
I removed target=':eval' from the A helper, and instead of using a return,
i used response.js
So now it's like this
new_button = SPAN(XML(T("✔ Friend request sent")), _class='button
white friendship')
response.js = "jQuery('#friendship_button').replaceWith('%s');" % new_button
response.js seems to be some sort of special header, so it executes the
jquery inside.
--
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.