I set href to "javascript:;". You could instead use CSS to style the
cursor to be a pointer to make it look real, but javascript:; is the
quickest and easiest.

Derek

On May 17, 7:40 am, Matthew Pocock <[email protected]>
wrote:
> Hi,
>
> I have several g:Anchor elements in my UiBinder design. I attach OnClick
> handlers to these to do interesting things. In the browser, these anchors
> are being rendered as <a> elements lacking an href attribute. When the
> mouse hovers over them, they don't do the usual link display things - the
> mouse icon goes into text mode rather than link-follow mode, and there's no
> blue underline. I tried adding a dummy href="" attribute, but although now
> they look like normal links, clicking on them follows to the url (in this
> case, a boring one) instead of the click handler. I want to have my cake
> and eat it - I want these links to look like links but react with my click
> handler. Is there a trick for this?
>
> Thanks,
>
> Matthew
>
> --
> Dr Matthew Pocock
> Integrative Bioinformatics Group, School of Computing Science, Newcastle
> University
> mailto: [email protected]
> gchat: [email protected]
> msn: [email protected]
> irc.freenode.net: drdozer
> skype: matthew.pocock
> tel: (0191) 2566550
> mob: +447535664143

-- 
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