The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com
__________________________________________________________________

Hello,

I am using this doc level function below to expand/collapse child bookmarks
on the page with a single click (customer request). This works with the
exception shown below, any help would be greatly appreciated, thanks.

Dan Murren

---------------------------

function ExpandBookMarks(x)
//x is the number of the child bookmark
{
   var bookm = this.bookmarkRoot.children[0];

if (bookm.children[x].open==false)
        bookm.children[x].open=true;
    else
        bookm.children[x].open=false;
}

Then on the bookmark itself, I placed this JavaScript action function call:

ExpandBookMarks(0);

then

ExpandBookMarks(1);

Etc, for every bookmark I want to expand/collapse.

It works, Except:

If under a bookmark I have 6 pages, the first time I fire the function 6
pages appear, the next time it collapses, then the next time only 3 appear,
the next cycle only 2. This 6,4,2 cycle repeats ad infinitum. clicking or
Double clicking the icon or plus sign reveals 6 all the time.




To change your subscription:
http://www.pdfzone.com/discussions/lists-pdf.html

Reply via email to