Re: create hyperlink using GWT
On 21 juil, 03:55, Lu <chenglu.annal...@gmail.com> wrote:
> Hi,
>
> After getting a bunch of urls from the sever side, I want to dispay
> them in the format of hyperlinks on the client side. In this case, I
> didn't use history at all so I choose to use 'new HTML()'.
>
> tableLeft.setWidget(index, 0, new HTML("<a href='www.google.com'>text</
> a>"));
Can't you use tableLeft.setHTML instead?
> If I do like this, the address of url will become 'http://
> 127.0.0.1:8888/www.google.com'rather than the one i want.
>
> How can I fix that?
Fix your HTML!
If you mean http://www.google.com, why do you give www.google.com? Try
it in any web page, with or without GWT. It's HTML 101.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home