That seemed promising but gave me an exception with top-most error as:

*<type 'exceptions.ValueError'> invalid literal for long() with base 10: 
'www.huffingtonpost.com'*


You can see that I'm using 'www.huffingtonpost.com' as my test case, which 
does resolve correctly if pasted strait into the browser.



On Sunday, August 28, 2016 at 6:57:37 PM UTC-4, luis.va...@metamaxzone.com 
wrote:
>
> Hello!
>
> Try this:
>
> <a href="{{=site.website}}" target="_blank">{{=site.website}}</a>
>
>
> El domingo, 28 de agosto de 2016, 17:29:40 (UTC-4), Steven Vannoy escribió:
>>
>> I have a view that displays a database form. One of the fields in that 
>> form is my user's own website. I'd like to display that as an active link 
>> in the browser. I've tried two different forms, the first produces an error 
>> because it is trying to resolve to a view within my application, and the 
>> other just reloads the current page.
>>
>> Here is the code in my view
>>
>> {{if site.website is not None:}}
>>     {{=A(T("Web Site"), _href=site.website)}}
>>     <br>
>>     <a href={{site.website}}>{{=site.website}}</a>
>> {{pass}}
>>
>>
>> Any help is much appreciated 
>>
>>
>>

-- 
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/d/optout.

Reply via email to