#81 Popup LOV does not close in Internet Explorer

v1.6
closed-duplicate
nobody
ApexLib_Lov (7)
5
2007-12-05
2007-12-05
No

This bug is affected only when Internet Explorer (6.0) is used. With FireFox it works perfect.

The replacement of the passBack function (in ApexLib_Lov.js) does not close the LOV window when an entry of the list has been selected. The LOV window keeps open in the background. The focus is set correct.

Not using the replacement of the passBack function will close the popup LOV.

Discussion

  • Frank Puechl

    Frank Puechl - 2007-12-05

    Logged In: YES
    user_id=279900
    Originator: YES

    Hi Patrick,

    I found the problem. It is in the IE specific part of the apexlib.lov.fireEvent function. Just a typo regarding the method to create the object for the fireEvent method. It must be createObjectEvent instead of createEventObject.

    Just replace the lines 41-45 of the script "ApexLib_Lov.js" from:
    ...
    else if (document.createEventObject) // for IE
    {
    vEvent = document.createEventObject();
    pElement.fireEvent("on"+pEvent, vEvent);
    }
    ...
    into:
    ...
    else if (document.createObjectEvent) // for IE
    {
    vEvent = document.createObjectEvent();
    pElement.fireEvent("on"+pEvent, vEvent);
    }
    ...

    Cheers,
    Frank

     
  • Patrick Wolf

    Patrick Wolf - 2007-12-05
    • status: open --> closed-duplicate
     
  • Patrick Wolf

    Patrick Wolf - 2007-12-05

    Logged In: YES
    user_id=1449836
    Originator: NO

    Hi Frank,

    thanks for looking into that. But have you used the ApexLib_Lov.js from the ApexLib_v1_6upd.zip file? Because that version should already contain that fix. It was reported with bug# 1700080 some time ago and has been fixed in revision 269 of the file. See diff http://apexlib.svn.sourceforge.net/viewvc/apexlib/trunc/Client/JavaScript/ApexLib_Lov.js?r1=261&r2=269

    It's really getting time to create a new clean release...

    But great that you already found a workaround :-)
    Patrick

     

Log in to post a comment.