I search this in google, but i don't find solution.
I have code like this:
public void addModule(final Module module) {
final HtmlListItem moduleItem = new
HtmlListItem(module.getTitle());
moduleItem.setStylePrimaryName("module-title");
adminMenu.add(moduleItem);
moduleItem.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent paramClickEvent) {
try {
currentItem.removeStyleName("current-module");
currentItem.setStylePrimaryName("module-title");
currentItem = moduleItem;
currentItem.setStylePrimaryName("module-title current-module");
module.load();
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
in FF3.6 when user click moduleItem ( this is LI element - text is in
DIV elment added to LI) then code execude correctly. But in IE7 code
doesn't execute.
My addClickHandler in HtmlListItem class :
public HandlerRegistration addClickHandler(final ClickHandler
paramClickHandler) {
clickHandlers.add(paramClickHandler);
HandlerRegistration handlerRegistration = new HandlerRegistration()
{
public void removeHandler()
{
clickHandlers.remove(paramClickHandler);
}
};
return
handlerRegistration;
}
How to change this code to work in
IE7
--
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.