Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Sending a href link through data services

Avatar

Former Community Member
Hi Ive been tring to send a href link in my chat but it just
appears in the plain text and not clickable. Does anyone know how
to do this or if its possible.



private function sendMessage():void

{

var message:AsyncMessage = new AsyncMessage();

message.body = {userId: userId.text, recipientId:
dg.selectedItem.userId, text:lbl.htmlText};

producer.subtopic = dg.selectedItem.userId;

producer.send(message);

}



<mx:Label id="lbl" selectable="true" >

<mx:htmlText>

<![CDATA[<a href='event:
http://www.adobe.com'>Navigate
to Adobe.com.</a>]]>

</mx:htmlText>

</mx:Label>

1 Reply

Avatar

Level 2
Hi,



If I am correct, as far as the messaging is concerned it is
just a text which you are passing. If you want the text (Anchor in
your case) to be work as an anchor, then I think you need to handle
that when you are displaying the text.



Hope this helps.