?
Solved

Expand Current Bookmark Javascript

Posted on 2002-05-21
3
Medium Priority
?
403 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Getting information about Fonts being used in a PDF file A colleague of mine recently faced an issue related to the PDF file format. The PDFs were containing mission critical client information, they were successfully mailed but there was a sm…
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…
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
Suggested Courses

765 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