Re: [Echo-list] RE: JavaScript Bug Client Date Picker / Button with Rollover Enabled
Brought to you by:
tliebeck
From: <Bra...@ca...> - 2004-04-07 23:50:56
|
Yes it was releated to the way the Client Date Picker created its dynam= ic styles. There were added to the head of the document. I tweaked it to= add them to the BODY and it works okay. It seems this exposed a problem in the Echo E_getStyle() JS method whic= h was not able to find previous Echo styles and return null and then the= E_applyStyle failed. I dd not chase down why the E_getStyle failed to = find a named style. Maybe it assumed that there is only one STYLE block. Cheers Brad Baker -----------------------------------------------------------------------= ----------------- Email : bra...@ca... Mobile: 0418-642-341 -----------------------------------------------------------------------= ----------------- = = =20 "Bozic, Chris" = = =20 <cb...@as...> To: "John= Rayburn" <joh...@th...>, = =20 Sent by: <echo-list@lis= ts.sourceforge.net>, <ech...@li...> = =20 ech...@li...ur cc: = = =20 ceforge.net Subject: [Echo= -list] RE: JavaScript Bug Client Date Picker / Button with Rollover = =20 Enabled = = =20 = = =20 07/04/2004 03:41 AM = = =20 = = =20 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 pos= ting 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 d= on'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 Roll= over 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{ echopoint.ui.Installer.register(); } public EchoInstance newInstance() { return new EchoInstance(){=00 protected Window init() { Button create =3D new Button("Add"); create.setRolloverEnabled(true); create.setForeground(Color.BLACK); create.setRolloverForeground(Color.BLUE); ContentPane pane =3D n= ew ContentPane(); pane.add(new ClientDatePicker()); pane.add(create); Window window =3D new Window(); window.setContent(pane= ); return window; }}; } } ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick _______________________________________________ Echo-list mailing list Ech...@li... https://lists.sourceforge.net/lists/listinfo/echo-list = |