SmartClient Version: SNAPSHOT_v8.3d_2012-09-20/Enterprise Deployment (built 2012-09-20)
FF 12.0
The ImgButton we use in our logon screen is no longer firing the ClickEvent in FireFox version 12.0. In IE8 and Chrome the event fires as expected. This problem surfaced only in the last few days, prior to that the event fired as expected.
Here is the pertinent code:
In our 'password' field we have a keypress handler that will fire a ClickEvent when the user presses Enter. This does work and I have verified that the onClick method of the ClickEvent does get executed.
Here is the code for the password keypresshandler:
Thanks
FF 12.0
The ImgButton we use in our logon screen is no longer firing the ClickEvent in FireFox version 12.0. In IE8 and Chrome the event fires as expected. This problem surfaced only in the last few days, prior to that the event fired as expected.
Here is the pertinent code:
Code:
ImgButton logonButton = new ImgButton(); logonButton.setHeight( 41 ); logonButton.setWidth( 199 ); logonButton.setLayoutAlign( Alignment.CENTER ); logonButton.setShowRollOver( true ); logonButton.setShowDown( true ); logonButton.setShowDisabled( true ); logonButton.setSrc( "[SKIN]/btn-login.png" ); logonButton.setDisabled( true ); logonButton .addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() { @Override public void onClick( com.smartgwt.client.widgets.events.ClickEvent event) { login(getUsername(), getPassword()); } }); loginLayout.addMember( logonButton );
In our 'password' field we have a keypress handler that will fire a ClickEvent when the user presses Enter. This does work and I have verified that the onClick method of the ClickEvent does get executed.
Here is the code for the password keypresshandler:
Code:
password.addKeyPressHandler( new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { clearErrorMessage(); if ( event.getKeyName().equals( "Enter" ) ) { logonButton.fireEvent( new com.smartgwt.client.widgets.events.ClickEvent( logonButton.getJsObj() ) ); } } } );
Comment