Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Layer Hell!!

  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Layer Hell!!

    Ok, so i have these layers on my page...and i also have some dropdown combo boxes/other form elements.....which decide they want to show through my layer.....what kinda work around can i use for this pain in the ***?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The best solution is to rearrange the page so they don't conflict, unfortunately that's also not an option for many pages. The next best solution is to control the visibility of the form elements whenever a layer is over them, but that one can be really difficult if you have to support Netscape 4 users.

    What you can't do is the one reasonable thing, namely being able to set the z-index of the form fields so that don't show through the layers. This is a long-standing problem in the browsers that seems tailor made to drive developers crazy.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so is there a code to hide form elements on the page while the layer is showing? where could i find it/how would i go about it?

  • #4
    New Coder
    Join Date
    Oct 2002
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i tried scouring the internet....and i found nothing that i think can help me...anyone out there have any suggestions?

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's the same code you'd use for hiding or displaying any other element (assuming you're using a standard routine or routines for that purpose). The key is that when you display the layer you need to also hide whatever form element(s) it will overlap, likewise when you hide that layer you need to also make the form element(s) visible again. The only caveat to watch out for is that when two layers may cover all or part of the same form field you want to make sure that you don't create a conflict situation where hiding one layer causes the form field to be displayed even though another layer is also still covering the field. That may not be a problem for you but you should be aware of it up front in case it could become a problem.

    (All the above advice assumes that Netscape 4 is NOT a consideration).
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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