You could use three qx.ui.embed.Html elements, I'd guess.

On Tue, 30 Apr 2013, fei wang wrote:

> But for this snipplet :
> -----------------------
> html.setHtml("TEXT<a href=?#? onclick=?js();'>click me</a>TEXT2");
> -----------------------
>
> If I add click event listener to the qx.ui.embed.Html object,
> The event will be triggered if I click 'TEXT' or 'click me' or 'TEXT2'.
>
> I want to fire the event only when clicking 'click me', How should I do?
>
>
> On Mon, Apr 29, 2013 at 9:33 PM, Loren Schlomer 
> <[email protected]>wrote:
>
>> Add a click event listener to the qx.ui.embed.Html object instead of
>> inside the anchor
>> On Apr 29, 2013 5:28 AM, "fei wang" <[email protected]> wrote:
>>
>>> Hi,
>>>
>>>
>>> In my Application.js, I have two snipplet below:
>>>
>>> [Snipplet 1]
>>> var html = new qx.ui.embed.Html();
>>> html.setHtml("<a href=?#? onclick=?js();'>click me</a>");
>>>
>>> [Snipplet 2]
>>> closeWin : function() {
>>> ...
>>> }
>>>
>>> I want to call 'closeWin' method when I click the 'click me' text, How
>>> should I do ?
>>>
>>>
>>> Regargs,
>>> Wang Fei
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Try New Relic Now & We'll Send You this Cool Shirt
>>> New Relic is the only SaaS-based application performance monitoring
>>> service
>>> that delivers powerful full stack analytics. Optimize and monitor your
>>> browser, app, & servers with just a few lines of code. Try New Relic
>>> and get this awesome Nerd Life shirt!
>>> http://p.sf.net/sfu/newrelic_d2d_apr
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to