Hello to all i,ve got this href "href" => "action/friends/add?friend=" . $entity->getGUID(), how do i turn it to something like this "href" => "javascript:elgg.action('friends/add?friend=', { $entity->getGUID() })", to make a Ajax call?
Can someone help me please??
Thanks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24

Matt Beckett - 0 likes
You must log in to post replies.Simplest way is to use jquery bindings: