Hello,

I am using the latest pulled version from GitHub and I am not able to use 
either of the solution listed by Anthony

Version 2.17.1-stable+timestamp.2018.08.05.17.57.00

Solution 1: 
('Label', False, dict(_href=URL(...), _target='blank'))

gave this link: http:
//127.0.0.1:8000/app/ctrl/index/%7B'_href':%20'/app/ctrl/func',%20'_target':%20'blank'%7D


and

Solution 2:
('', False, A('Label', _href=URL(...), _target='blank'))

gave this link: http://127.0.0.1:8000/app/ctrl/index/%3Ca%20href= 

But if I used the A(...) code in a controller, it prints to console and 
screen with correct HTML.

Has there been a change in code? Please assist... Thanks!




On Monday, April 15, 2013 at 9:50:29 AM UTC+8, Anthony wrote:
>
> A menu item can be specified like this:
>
> ('Label', False, dict(_href=URL(...), _target='blank'))
>
> or this:
>
> ('', False, A('Label', _href=URL(...), _target='blank'))
>
> Note, in the second case, the third element can be any HTML helper object 
> (including nested helpers).
>
> Anthony
>
> On Sunday, April 14, 2013 6:09:56 PM UTC-4, BlueShadow wrote:
>>
>> Hi,
>> I like to be able to set some link attributes in my response menu:
>> I want some links to open in a new tab: target="blank"
>> and I would love to set some alt atributes for the links in the response 
>> menu.
>> Is that even possible?
>> thanks 
>>
>

-- 
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