I prefer the 1st one.

On Thu, Sep 12, 2013 at 8:58 AM, Tim Richardson <t...@growthpath.com.au> wrote:
> Not strictly a web2py question.
> We have an app which serves embedded videos to identified, logged in users.
> The videos are hosted on vimeo. We'd like to know if a user clicks on a
> link, and record that in a table.
> I could send the link destination back to a web2py controller function which
> would record who clicked the link (and which link) and then redirect, or I
> could do an ajax call via onclick. I think that the onclick function would
> need to return a value anyway before the link would happen, so I'm not sure
> there is much performance difference.
> But I don't have practical experience; which is better practice?
>
>
> --
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to