PDA

View Full Version : how to make a link inside a textArea?


stonyx
07-20-2006, 07:31 PM
any one knows how to make a link inside a textarea,
i have this datagrid and a textArea what i want to do is place a link in the xml
something like

<catalog>
<book>
<name> <a href='tony' target='?????'></a>some textsome textsome textsome text see also tony</name>
<desc>blablablablablablablabla</desc>
</book>
<book>
<name>tony</name>
<desc>blablablablablablablablablablabla</desc>
</book>
</catalog>

is it possible or maybe samothing like it, please any idea will help

waarbs
07-21-2006, 11:52 AM
That looks like it might work but you would need to close the <a> tag after the text "...see also tony</a></name>"

stonyx
07-21-2006, 10:56 PM
that won't work at all, i already tried it
but i did something different i added a tag in the xml call <link> and a label in my mxml it goes something like this

<mx:Label id="src" x="2" y="390" width="436" text="{datagrid.selectedItem.link}"
click="inputText.text=src.text" toolTip="Go to {datagrid.selectedItem.link}"/>

so if there is a link and u click on it, will take u to it's definition not exactly what i wanted but it works