Expand Panel with Javascript?

  1. #1

    Expand Panel with Javascript?

    How do i find an object 'panel' and expand that object using javascript?

    i've tried various things and none work


    var tmp = document.getElementById('ctl00_ContentPlaceHo lderClient_treArchive').value;
    tmp.expand();


    document.getElementById('ctl00_ContentPlaceHo lderClient_treArchive').Expand();



    Thanks

  2. #2

    RE: Expand Panel with Javascript?

    Each component is instantiated in the client (browser) using its .ClientID property. You should be able to just call the .expand() function.

    Example

    ctl00_ContentPlaceHolderClient_treArchive.expand();
    Using .getElementById is not required (and will not work) because the client-side widgets are complex JavaScript objects and generally not accessible like standard html elements.

    Hope this helps.

    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Expand collapsed panel
    By uniway in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 15, 2013, 1:41 PM
  2. Replies: 1
    Last Post: Mar 13, 2012, 8:37 AM
  3. Replies: 2
    Last Post: Dec 28, 2010, 9:47 PM
  4. How to Expand the collapsed panel from java script
    By ajaybabu.maddinani in forum 1.x Help
    Replies: 4
    Last Post: Mar 12, 2010, 2:42 AM
  5. Replies: 4
    Last Post: Aug 19, 2009, 2:01 PM

Posting Permissions