Results 1 to 2 of 2

Thread: Regarding "Dynamic Ajax Content" Demo

  1. #1
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Regarding "Dynamic Ajax Content" Demo

    The demo located HERE shows how to dynamically display content on demand. My question is how would I go about building on that so that I could expand/collapse the content contained in the DIV?

    Thanks.

  2. #2
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Solved by adding the following after the "page_request.send(null)" line:

    Code:
    var dv = document.getElementById(containerId);
    dv.style.display = (dv.style.display == 'block'? 'none':'block');

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
  •