Why don't you surround those special words with a label (or a span)
and attach an event handler to that? This would require you to
dynamically create the spans (or labels, depending on how you are
constructing this, i.e., UIBinder, in Java, etc).

Yaakov.

On Mar 3, 5:24 am, mariyan nenchev <[email protected]> wrote:
> Hi,
>
> I have a label(or HTML) that contains some text. There are special words in
> the text. The user has to be able to click on them and when he does, i must
> fire my custom event. So is it possible to catch when the user clicks
> exactly at those words(the other text is regular).
>
> Example:
> Google Web Toolkit (*GWT*) is a development toolkit for building and
> optimizing complex browser-based applications. *GWT* is used by many
> products at Google, including Google Wave and Google AdWords. It's open
> source, completely free, and used by thousands of developers around the
> world.
>
> Lets say Google is special word. And when the user clicks exactly on
> "Google" something happens.
>
> Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to