Results 1 to 5 of 5

Thread: PlaceHolder doesn't have an HTML ID

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Resolved PlaceHolder doesn't have an HTML ID

    I want to have a section on a page that I can set the visibility to hidden through javascript and have the section collapse. I tried to use the PlaceHolder control but it doesn't generate an object on the client side - so I can't use document.getElementById.

    Any ideas?
    Last edited by wey97; Mar 1st, 2005 at 12:11 PM.

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: PlaceHolder doesn't have an HTML ID

    Would you be able to use a Panel element instead?

    DJ

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: PlaceHolder doesn't have an HTML ID

    I've already tried...you can hide the panel in javascript but the space it took up remains on the page - it doesn't collapse.

  4. #4
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: PlaceHolder doesn't have an HTML ID

    The Panel control generates a HTML div - if you have a width and height specified even if it isn't visible maybe it is still reserving the space. Have you tried hiding it and resizing it to 0 x 0?

    DJ

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: PlaceHolder doesn't have an HTML ID

    I tried what you suggested and that didn't work either.
    Finally found that setting style.display = 'none'
    will hide it and collapse the space.

    Thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width