Solved

Expand Current Bookmark Javascript

Posted on 2002-05-21
3
394 Views
Last Modified: 2006-11-17
I want to create a form button that, when clicked, will expand a bookmark. Or, I want a bookmark to expand when navigating to a certain page.

I found this javascript somewhere else but it won't work.

tocbm = this.bookmarkRoot.children[0];
tocbm.execute;

Does anyone know if this is possible, thanks.
0
Comment
Question by:jnr123
3 Comments
 

Expert Comment

by:musalmik
ID: 7531648
Well, your question is old, but I'm new to EE so I could not answer earlier.

The execute method can only be used to call a defined action. Because there is no action like opening a bookmark subtree, that method cannot be used for this purpose.

You can instead use the open attribute of bookmarkroot children objects:

this.bookmarkRoot.children[0].open = 1;

would open the subtree while ...open = 0 would close it.

Have fun
Maik
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11195355
PAQed - no points refunded (of 350)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question