You need to replace web2py.js with the latest one from the welcome app.
On Monday, 21 April 2014 11:56:41 UTC-5, Ruud Schroen wrote:
>
> Hi,
>
> I've got a A helper with a callback function, which is created in the
> controller
>
> return A(T('Send friend request'), callback=URL('friendship', args=[
> 'request', user.id]), _class='bt_white sendrequest', _id=
> 'friendship_button', target=':eval')
>
> It used to render this:
>
> <a class="bt_white sendrequest"
> href="#null<http://localhost:9000/studyportal/default/profile?user=ruudje#null>
> " id="friendship_button" onclick="ajax('/studyportal/default/
> friendship/request/1',[],':eval');return false">Send
> friend request</a>
>
> But now it renders this:
>
> <a class="bt_white sendrequest" data-w2p_disable_with="default"
> data-w2p_method="POST" data-w2p_target=":eval" href="
> /study2go/default/friendship/request/2<http://localhost:8000/study2go/default/friendship/request/2>
> " id="friendship_button">Send friend request</a>
>
> And the callback doesn't work. It just follows the URL like a normal
> href...
>
--
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.