[Echo-list] JavaScript Bug Client Date Picker / Button with Rollover Enabled
Brought to you by:
tliebeck
From: John R. <joh...@th...> - 2004-04-06 12:43:51
|
The attached excerpt of code causes a JavaScript error in Internet Explorer only. The error is color is null or not an object and it occurs when you mouse over the button (not the calendar button, but the regular button). Has anyone else had this problem? If you remove rolloverEnabled on the button, the problem goes away. Thanks! John Rayburn 304.594.8081 Threewide Corporation -- It's all about the data! jra...@th... ---------- Code Follows: import nextapp.echo.Button; import nextapp.echo.Color; import nextapp.echo.ContentPane; import nextapp.echo.EchoInstance; import nextapp.echo.Window; import nextapp.echoservlet.EchoServer; import echopoint.ClientDatePicker; /** * @author jp */ public class TestServer extends EchoServer { static{=20 echopoint.ui.Installer.register();=20 } public EchoInstance newInstance() { return new EchoInstance(){ protected Window init() { Button create =3D new Button("Add"); create.setRolloverEnabled(true); create.setForeground(Color.BLACK); =09 create.setRolloverForeground(Color.BLUE); =09 ContentPane pane =3D new ContentPane(); pane.add(new ClientDatePicker()); pane.add(create); =09 Window window =3D new Window(); window.setContent(pane); return window;=09 }};=20 } } |