I try to use the GWT history with a value change handler, what is
recommended since GWT 1.6.4. The result is a TypeError in IE. My code
in the onModuleLoad method looks like this:

HorizontalPanel basePanel = new HorizontalPanel();
RootPanel.get().add( basePanel );

History.addValueChangeHandler( new ValueChangeHandler<String>() {

    public void onValueChange(ValueChangeEvent<String> event) {
        // Do something.
    }

});

if(History.getToken().equals( "" )) {
   History.newItem( "myUrl" );
}

History.fireCurrentHistoryState();

My code works in all browsers except IE, there it stops at the line

History.addValueChangeHandler(...)

After compiling with DETAILED style, I got:

(TypeError): 'com_google_gwt_user_client_impl_HistoryImpl_handlers' is
null or not an object ...

How can I solve this?

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