Skip to Content
avatar image
Former Member

mouse click event in webdynpro java

Hi

Can anyone tell me how mouse click event on a webdynpro view be captured? The requirement is to close a popup window by clicking anywhere in the view.

Thanks

Venkata

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Dec 06, 2009 at 10:13 PM

    Hi,

    I'm afraid this is not possible. You will need to create a button or image or something and have a server-side method to close the window.

    Since I've never seen a "z-index" manipulation inside WDP, I don't think you can create a top layer transparent element and have your Action in this element.

    Regards,

    Daniel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 07, 2009 at 07:36 AM

    I've to agree with Daniel - that's not possible. And its quite a peculiar requirement.

    I was thinking of having an IFrame have the JavaScript there - perhaps the only way you can do an anywhere click BUT at least to the confined area of the element. That just made the entire view useless. :P

    Make it simple. 😊

    Create a button. 😉

    Regards,

    Jan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 07, 2009 at 08:29 AM

    Change your requirement to "The window can be closed by pressing a button" (or in releases >= 7.11 by a close-icon).

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 08, 2009 at 12:30 PM

    Hi

    Thanks to all of you for your suggestions. We have already changed our requirement and added a button in pop-up to close.

    Thanks

    Venkat

    Add comment
    10|10000 characters needed characters exceeded