Alexis Revue
Posts: 0
Joined: Wed Jul 02, 2014 4:28 am

How to define a target attribute of anURL component in a list?

Hi,

My App is reading a RSS flow and I would like to open each link into a new browser (playing with "self", "system", "blank").

I've check the following tutorial:
http://devcenter.appery.io/tutorials/...

If I use URL component, I cannot change the target attribute.

If I use a Label component with a javascript like in the tutorial, I got an issue since the item is stored in a list. As a consequence, the name of the label storing the link is not unique.

How could I open listed links into a browser with target=_blank?

Thank you,

Alexis

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to define a target attribute of anURL component in a list?

Hi Alexis,

You can set any attribute using JS:preApperyio("componentName").attr(attrName, attrValue);/pre

Return to “Issues”