html onclickhandler with multiple hyperlink

4 views
Skip to first unread message

maks

unread,
Sep 17, 2009, 4:48:52 AM9/17/09
to Google Web Toolkit
hi guys,

I was wondering how do you identify the hyperlink that was click
provided that you have multiple selection.

Example:

HTML sampleHTML=new HTML("<a href='javascript:;'>test1</a>-<a
href='javascript:;'>test2</a>");

Are you going to use the clickhandler? how?

thanks a lot.

maks

Isaac Truett

unread,
Sep 20, 2009, 11:41:42 AM9/20/09
to google-we...@googlegroups.com
Hi Maks,

I think you would be better served by using a FlowPanel and adding
multiple Hyperlinks or Anchors to it. The example you've provided
doesn't allow for separate ClickHandlers on the two <a> elements.

- Isaac

maks

unread,
Nov 11, 2009, 2:10:55 AM11/11/09
to Google Web Toolkit
hi isaac,

I think I solved it by using a table to separate the Hyperlinks.
Thanks for the help and sorry for the long delay reply.

On Sep 20, 11:41 pm, Isaac Truett <itru...@gmail.com> wrote:
> HiMaks,
Reply all
Reply to author
Forward
0 new messages