From: Lars K. <in...@ko...> - 2001-01-17 15:22:57
|
Hi DynApi I had a Menulist widget, which worked just fine in IE50, but not = in IE55. No widgets has been released for DYNAPI II therefor I ask this = question to you guys: Has anyone solved the problem that the MenuList widget does not respond = to clicks in IE 55. ? Best regards Lars Hejls=F8 Kohsel ---------------o0o----------------- Kohsel Data Haugevej 40 - 8620 Kjellerup Tlf. 8688 8848 Fax 8688 8847 in...@ko... www.kohsel.com ---------------o0o----------------- |
From: Alan M. <amu...@ra...> - 2001-01-17 16:37:08
|
Hi Lars, I was forced to solve the problem with the original dynlayer, since I had=20 to fix an app that used it (without rewriting it from scratch). I had stripped down the original list widget so that it uses no cascading=20 lists or images. The problem I experienced is that the item does not respond when clicked=20 over the text in ie5.5. In the ListBuild() method, two divs (layers) are created for each menu=20 item. Problem with ie5.5 is that the one with the event handlers for the=20 mouse events, "lyre", was not getting the events. I got it to work (in=20 part) by adding event handlers for the other div, "lyr". I am now working on reproducing a simple menu based on the list widget html= =20 example currently in the CVS and have noticed some bugs (which I posted=20 yesterday to the "help" list. I have not tested the DynAPI (II) list widget in ie 5.5, so I cannot speak= =20 directly to your question, but it has some minor problems even in 5.0. Below is the message I posted to the "help" list: Can someone make the fixes and check-in these files? ---------------------- dynapi.gui.list.js: In the function definition for List.setColors(): List.prototype.setColors =3D=20 function(bg,bgRoll,bgSelect,textNormal,textRoll,textSelect){ var ls =3D this.listStyle; // The line below is the original and seems incorrect. // ls *is* a listStyle and does not have a field called listStyle: // ls.listStyle.bg =3D bg||ls.bg; // I replaced the line with the one below: ls.bg =3D bg||ls.bg; .... }; --------------------------- dynapi.gui.list.html: In the example, NS Rollover colors don't work with the original 4 list=20 items, but do with any "added" items. By adding the list to the DynAPI doc= =20 *before* adding the listItems to the list, this is fixed: <script language=3D"Javascript"> DynAPI.onLoad =3D function() { list =3D new List(); ... // AM Widget fix: addChild() must precede list.add() for rollover to=20 work in NS: DynAPI.document.addChild(list); list.add('Item One', 1); list.add('Item Two', 2); list.add('Item Three', 3); list.add('Item Four', 4); // Originally the addChild line was here: // DynAPI.document.addChild(list); } </script> ------------------------- There is a further bug in running the example, which I have not yet caught,= =20 but suspect is in list.js, but may lie deeper: In IE 5.0 (untested in 5.5 by me), the mouseout events do not work when the= =20 pointer is over the text in the list. In other words, the rollover color=20 (for the listItem) changes back to the normal bg color only when the=20 pointer is over the blank space in the list. If the pointer is over the=20 text when it leaves the listItem, the rollover color remains. Any ideas? At 04:25 PM 1/17/01 +0100, Lars Kohsel wrote: >Hi > >DynApi I had a Menulist widget, which worked just fine in IE50, but not in= =20 >IE55. No widgets has been released for DYNAPI II therefor I ask this=20 >question to you guys: > >Has anyone solved the problem that the MenuList widget does not respond to= =20 >clicks in IE 55. ? > >Best regards >Lars Hejls=F8 Kohsel > >---------------o0o----------------- >Kohsel Data >Haugevej 40 - 8620 Kjellerup >Tlf. 8688 8848 >Fax 8688 8847 ><mailto:in...@ko...>in...@ko... >www.kohsel.com >---------------o0o----------------- > > |
From: Theo B. <be...@ot...> - 2001-01-19 08:32:03
|
Hi I'm trying to learn the remarkable DynAPI 2 library by tracing its code. I have some troubles though... This comes from the DynLayer.prototype.EventMethod() function DynLayer.prototype.EventMethod=function(e) { var dyndoc=this.lyrobj.dyndoc //.... } I've done a searching into all the source documents. Where the DynLayer declares this.lyrobj? I can't find such a declaration/assignment. I've found this.doc.lyrobj= ... this.elm.lyrobj=... but no this.lyrobj Could you please enlighten me? I think I miss a lot here. Regards Theo ----------------------------------- Theo Bebekis Thessaloniki, Greece be...@ot... ----------------------------------- |
From: Theo B. <be...@ot...> - 2001-01-19 20:53:26
|
This line comes from the DynLayer.prototype.EventMethod = function(e) var which = (is.ie||is.ns5) ? e.button : e.which and since there is no reference to which after that line I wonder what is meaning of it. Am I missing something here? Theo ----------------------------------- Theo Bebekis Thessaloniki, Greece be...@ot... ----------------------------------- |
From: Pascal B. <pa...@dy...> - 2001-01-19 21:08:52
|
line can be removed, button setting is now done in the setEvent() it's "left-over" code. Pascal Bestebroer pa...@dy... http://www.dynamic-core.net > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Theo Bebekis > Verzonden: vrijdag 19 januari 2001 22:12 > Aan: dyn...@li... > Onderwerp: [Dynapi-Widgetdev] which? > > > > This line comes from the DynLayer.prototype.EventMethod = function(e) > var which = (is.ie||is.ns5) ? e.button : e.which > and since there is no reference to which after that line I wonder > what is meaning of it. > > Am I missing something here? > > Theo > > ----------------------------------- > Theo Bebekis > Thessaloniki, Greece > be...@ot... > ----------------------------------- > > > _______________________________________________ > Dynapi-Widgetdev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-widgetdev > |
From: Theo B. <be...@ot...> - 2001-01-21 12:22:44
|
Thanks again Pascal ----------------------------------- Theo Bebekis Thessaloniki, Greece be...@ot... ----------------------------------- > -----Original Message----- > From: dyn...@li... [mailto:dyn...@li...]On Behalf Of > Pascal Bestebroer > Sent: Friday, January 19, 2001 11:08 PM > To: dyn...@li... > Subject: RE: [Dynapi-Widgetdev] which? > > > line can be removed, button setting is now done in the setEvent() > > it's "left-over" code. > > Pascal Bestebroer > pa...@dy... > http://www.dynamic-core.net > > > -----Oorspronkelijk bericht----- > > Van: dyn...@li... > > [mailto:dyn...@li...]Namens Theo Bebekis > > Verzonden: vrijdag 19 januari 2001 22:12 > > Aan: dyn...@li... > > Onderwerp: [Dynapi-Widgetdev] which? > > > > > > > > This line comes from the DynLayer.prototype.EventMethod = function(e) > > var which = (is.ie||is.ns5) ? e.button : e.which > > and since there is no reference to which after that line I wonder > > what is meaning of it. > > > > Am I missing something here? > > > > Theo > > > > ----------------------------------- > > Theo Bebekis > > Thessaloniki, Greece > > be...@ot... > > ----------------------------------- > |