Hello all.
This may be a follow-up to an earlier question posed by an associate yesterday. I am using this doc level function below to expand/collapse child bookmarks on the page with a single click (customer request):
 
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.
 
 
Any ideas anyone? I would really appreciate the help.
 
 I'm using Acrobat 5.0 which is what the bookmark object is made for.
 
Thanks,
 
Mark Heatley
Progressive Information Technologies
 

 

<<Blank Bkgrd.gif>>

Reply via email to