Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Expand Current Bookmark Javascript

Posted on 2002-05-21
3
Medium Priority
?
410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Acrobat’s JavaScript is a great tool to extend the application, or to automate recurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts,…
Can Be Caused By Disabled Services I have encountered a problem viewing PDF files using Adobe Acrobat Reader.  For the longest time, PDFs might launch or might not.  Sometimes they took about 15 minutes to appear after launching them. After som…
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

636 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