Hi, I wanted to make a Popup in which a text with a link appears and when clicking it a function is called. My code looks like this:
<text name="_test" multiline="true"> <handler name="oninit"> <![CDATA[ this.setAttribute("text",'<b>'+canvas.getLabelName(2030)+'</b>' + canvas.getLabelName(2036) + '<font color="#0000FF">' + makeTextLink(canvas.getLabelName(2032),"") + '</font>'); ]]> </handler> <handler name="ontextlink"> <![CDATA[ //insert function to call this.setAttribute("text","I was called"); ]]> </handler> </text> The text is displayed correct, bold text -> normal text -> link, I can hover over the link and the mouse changes to a handcursor, but nothing happens when clicking. According to the reference, the ontextlink handler should be called when clicking a textlink and in tests on an openlaszlo server it worked as it should, but in OM nothing happens... If I make the whole text clickable and change ontextlink to onclick it also works, but I want only a clickable link. Can anyone guess what the problem is or has another solution for me? For example, is it possible to make 2 text objects, one a clickable that calls the function, and connect them to look like one text? Thanks in advance.