SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Another modal window question

    Hi guys,

    I got a question regarding the transparent layer blocking interaction from the "bottom" layers of window when a modal window is engaged. I have several questions:

    After the initial event, i can manage to get the JS to append a div to the DOM which is a transparent layer, but:

    1. A div below the transparent div has a scrollbar, and this is still interactable. How do i stop this?

    2. The events below are still accessible (i have event bubbling or capturing, not sure which one im using). How do i stop this? Problem is i have attached the transparent layer to the body, and the eventlistener to a container inside the body. I don't know if that makes a difference but i suspect it could.

    Any help would be great...only been doing JS for about 1 week now.

  2. #2
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All good figured it out.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •