Solved

Expand Current Bookmark Javascript

Posted on 2002-05-21
3
383 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
Comment Utility
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
Comment Utility
PAQed - no points refunded (of 350)

modulo
Community Support Moderator
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
PDF Weirdness 15 48
Adobe Indesign CS6 4 74
*Best* PDF to Word Convertor 4 77
Outlook 2013 and Adobe 3 45
In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now