I'm having a problem with Hyperlinks not working on IE7. It appears
that there was a similar bug reported some time back with non-GWT
tokens in IE7, but my problem appears to be a bit different (total
hyperlink failure). The following code works fine on Safari/FireFox,
but does nothing on IE7. This test just inserts the Hyperlink history
token into a status element. The host page must have one div in it
with the id "page".
------- SNIP SNIP -------
public void onModuleLoad ()
{
// Create some links
HorizontalPanel hpane = new HorizontalPanel ();
hpane.add (new Hyperlink ("One", "one-token"));
hpane.add (new Hyperlink ("Two", "two-token"));
hpane.add (new Hyperlink ("Three", "three-token"));
// Create a place to catch tokens
HTML status = new HTML ("Status: ");
status.getElement ().setAttribute ("id", "status");
// Stick them in the page element
RootPanel root = RootPanel.get ("page");
root.getElement ().setInnerHTML ("");
root.add (hpane);
root.add (status);
// Setup history tracking
History.fireCurrentHistoryState ();
History.addHistoryListener (new HistoryListener () {
public void onHistoryChanged (String historyToken)
{
RootPanel s = RootPanel.get ("status");
s.getElement ().setInnerHTML ("Status: [" +
historyToken + "]");
}
});
}
------- SNIP SNIP -------
Any clues??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---