I am trying to set up links to parts of a large page using anchors, where 
the from has href="#to" and the to has name="to".
But it ignores the setName() on the anchor tag. Is this by design for some 
reason?

---

  public void onModuleLoad() {
        VerticalPanel vp = new VerticalPanel();
        Anchor a1 = new Anchor("abc", "#xyz");
        vp.add(a1);
        Anchor a2 = new Anchor("");
        a2.setName("xyz");
        vp.add(a2);
    RootPanel.get().add(vp);
    Window.alert(RootPanel.get().getElement().getInnerHTML());
  }


--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to