[Echo-list] RE: JavaScript Bug Client Date Picker / Button with Rollover Enabled
Brought to you by:
tliebeck
From: Bozic, C. <cb...@as...> - 2004-04-06 17:41:59
|
We're getting the same thing in our app. Actually, we didn't notice it = until after you made your post about it. So, could you please stop = posting problems you are having. It breaks our application when you do. = :) Seriously though, we aren't sure what's causing it and it looks like we = can get it to happen with other components. We have a page that has = (among other components) a SortableTable and a ClientDatePicker. When a = user moves their mouse over the SortableTableHeader the error pops up. = We don't have a rollover set on the table header but it still gives us = the error anyway. Chris -----Original Message----- From: John Rayburn [mailto:joh...@th...] Sent: Tue 4/6/2004 8:47 AM To: ech...@li... Cc: Bozic, Chris Subject: Client Date Picker Continuing on the issue regarding ClientDatePicker and a Button with rollover enabled, the JavaScript error also occurs in Mozilla. In Mozilla the error says: E_style has no properties. Thanks for any help! John Rayburn 304.594.8081 Threewide Corporation -- It's all about the data! jra...@th... -----Original Message----- From: John Rayburn [mailto:joh...@th...] Sent: Tue 4/6/2004 8:44 AM To: ech...@li... Cc: Bozic, Chris Subject: JavaScript Bug Client Date Picker / Button with Rollover = Enabled 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 } } |