How can I link to pages in a 2 level popup index/selection tree with java script?

I can do a single level popup index using the java script below (#1) and link the selections to pages but to change to a  2 level popup index selection tree as below (#2) I can't seem to figure out how to link to pages. Any help greatly appreciated. Thanks
1
var itemIndex = app.popUpMenu("INTRODUCTION", "ALPHABET", "GRAMMAR", "NUMBERS", "DATES & TIME", "GETTING TO KNOW PEOPLE", "PHRASES FOR LEARNING", "DIRECTIONS & TRANSPORTATION", "DESCRIBING THE TRAIL", "DO'S & DON'TS", "EQUIPMENT", "FOOD", "INTRODUCING A VILLAGE", "CULTURE AND ETHNIC GROUPS", "HANDICRAFTS", "TEMPLES & MONKS", "AGRICULTURE", "ANIMAL HUSBANDRY", "SCHOOL & EDUCATION", "LEADING A TREK", "NATIONAL PROTECTED AREAS", "IDENTIFYING WILDLIFE", "PLANTS & FORESTS", "BOATS", "CAVES", "HEALTH AND SAFETY")
switch (itemIndex) {
case "INTRODUCTION":
this.pageNum = 1
break
case "ALPHABET":
this.pageNum = 2
break
case "GRAMMAR":
this.pageNum = 5
break
case "NUMBERS":
this.pageNum = 30
break
case "DATES & TIME":
this.pageNum = 35
break
case "GETTING TO KNOW PEOPLE":
this.pageNum = 42
break
case "PHRASES FOR LEARNING":
this.pageNum = 56
break
case "DIRECTIONS & TRANSPORTATION":
this.pageNum = 59
break
case "DESCRIBING THE TRAIL":
this.pageNum = 63
break
case "DO'S & DON'TS":
this.pageNum = 68
break
case "EQUIPMENT":
this.pageNum = 74
break
case "FOOD":
this.pageNum = 83
break
case "INTRODUCING A VILLAGE":
this.pageNum = 96
break
case "CULTURE AND ETHNIC GROUPS":
this.pageNum = 105
break
case "HANDICRAFTS":
this.pageNum = 120
break
case "TEMPLES & MONKS":
this.pageNum = 126
break
case "AGRICULTURE":
this.pageNum = 131
break
case "ANIMAL HUSBANDRY":
this.pageNum = 140
break
case "SCHOOL & EDUCATION":
this.pageNum = 145
break
case "LEADING A TREK":
this.pageNum = 151
break
case "NATIONAL PROTECTED AREAS":
this.pageNum = 155
break
case "IDENTIFYING WILDLIFE":
this.pageNum = 161
break
case "PLANTS & FORESTS":
this.pageNum = 169
break
case "BOATS":
this.pageNum = 175
break
case "CAVES":
this.pageNum = 178
break
case "HEALTH AND SAFETY":
this.pageNum = 182
break
2
var aINTRODUCTION = ["INTRODUCTION", "How to Use This Book", "Format"];
var aALPHABET = ["ALPHABET", "Vowel Sounds", "Consonant Sounds"];
var itemIndex = app.popUpMenu(aINTRODUCTION, aALPHABET);
Thanks.

Thanks. I've got it now. I was mistakenly renaming itemIndex to each section...Introduction, Alphabet

Similar Messages

  • How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    Try this.
    Open the document and select and copy a few pages, say ten pages.
    Open a new blank document and paste the pages you copied into that.
    Save it with a new name.
    Work on those new pages to see if the problem has disappeared.
    If this helps, continue breaking up the large file in to smaller chunks and working on them
    You can of course later reverse the process and merge the files into one new one.
    This suggestion is based on my experiences with large Word files. Breaking it up in to smaller chunks does two things. First, if there is any corruption in the old file, the new copies might escape that. Second, the Mac is faster handling the smaller chunks.

  • How can I link two charts on different pages in one document?

    I have a chart on the first page How cn aI link two charts on differnetof my document. The last line is a intermediate total (formula). How can I link the chart on the next page to this total, so I can go on with the calculation without having to copy and paste the result of the first chart?

    Timan,
    I'm sure that you could figure out how to get along with Pages, or Numbers. Each has it's own advantages and disadvantages.
    If you put all your text that doesn't need to be in the table into text boxes, you can place the text boxes over the table in any arrangement you like. Be sure to turn off Object Causes Wrap in the Wrap Inspector.
    Here is an example of a single table across two pages with other text on the page:
    The formula in the cell displaying 500 is =B1 * 100
    On the other hand, I agree that the feature of linking to sister tables would be a nice enhancement and I encourage you to submit the idea vie Pages > Feedback > Enhancement Request.
    Regards,
    Jerry

  • How can I save a page with all the links for offline reading

    how can I save a page with all the links for offline reading

    Maybe '''Pocket''' is what you want?
    [https://addons.mozilla.org/en-US/firefox/addon/read-it-later/?src=search Pocket (Mozilla Addons)]

  • Only the first page is printed reduced as setup. All pages afterward are full size with information cut off. Recent problem. Can print from Safari just fine. How can I get all pages to be reduced size?

    Question
    Printing internet pages
    Reduced print size
    Only the first page is reduced and printed as desired
    All pages after the first page are full size with information cut off
    Recent problem never seen before
    Can print from Safari and other software just fine
    How can I get all pages to be reduced size?

    One suggestion worked from the Firefox prints incorrectly link mentioned above by mha007. I'm thrilled since this has been annoying me for weeks. Thanks mha007!
    Reset all Firefox printer settings
    # Open your profile folder:
    # On the menu bar, click on the Help menu and select Troubleshooting Information. The Troubleshooting Information tab will open.
    # Under the Application Basics section, click on Show in Finder. A window with your profile folder will open.
    # Note: If you are unable to open or use Firefox, follow the instructions in Finding your profile without opening Firefox.
    # On the menu bar, click on the Firefox menu and select Quit Firefox.
    # In your profile folder, copy the prefs.js file to another folder to make a backup of it.
    # Open the original prefs.js file in a text editor (such as TextEdit).
    # Remove all lines in prefs.js that start with print. and save the file.
    # If something goes wrong when you open Firefox, close it again and overwrite prefs.js with the backup you made.

  • Can/How can I create a page with all my blog pages RSS??

    Hello all.
    I have a website containing many seperate Blog pages according to their topics like News, Tech and Scifi.
    Is it possible to create a new page, that will contain the latest entries of all these blog pages a one "consolidated" page, maybe perhaps of RSS feed?
    Thanks and cheers

    Apple states
    How can I create a page that aggregates my podcasts?
    If you have multiple podcasts listed in the iTunes Store, the iTunes staff can create a single page that lists all of them in one place. We call this page an “artist page.” Note that a podcast can only appear on one artist page.
    To request an artist page, navigate to one of your podcasts, click on Report a Concern, and select Remove a Podcast. In the dialog box, explain that you would like an artist page, give us the exact name of the artist (please don’t include “Inc,” “LLC,” etc.), and list the exact feed URLs or links to your podcasts.
    at the bottom of this page
    http://www.apple.com/itunes/podcasts/creatorfaq.html
    I hope two is enough and if not that someone contacts me and maybe even changes the info on the above link.
    Thank you for your input!

  • How can I link my daqmx code to another daq assistant to hear my audio output?

    Hi,
    I got a burning question about my school project. I need to use labview and my NI-mydaq to test the difference between
    various samples rates and bit depths.
    I linked an mp3 file to the AUDIO IN of my NI-mydaq and created a way to be able of switching sample rate while running my program.
    Now I would like to link my program inside the NI-mydaq to my AUDIO OUT...
    So...  I generated daqmx code out of an input daq assistant, how can I link my daqmx code to another daq assistant to hear my audio output?

    Hello Fontys_Student...,
    I am not sure I properly understand your question.
    You want to, first, acquire a signal from the AUDIO IN input, second, do some processing on the acquired signal and, third, generate this processed signal at the AUDIO OUT, right? What is the part causing some troubles?
    If you already have the signal acquired and processed, you can simply wire this processed signal to the "data" input of a second DAQ Assistant, right?
    Did you already have a look at the myDAQ User Guide (http://www.ni.com/pdf/manuals/373060e.pdf)? On page 32-35, there is an example showing what you need I suppose. 
    Cédric | NI Belgium

  • How can I link my database with flash?

    Hi…
    How can I link my database with flash to display image (to
    display it in master details page)
    Please your help ASAP.
    Regards,

    You could use some server-side scripting like PHP or ASP.
    http://www.kirupa.com/web/index.htm

  • How can I link my two sites?

    How can I link my two sites?

    What do you mean by link?  You can add a text based hyperlink in Site A to Site B and do the same in Site B. 
    Or you can add a totally blank page to Site A and name it Site B.  Then add the following code to an HTML snippet:
    <script type="text/javascript">
    parent.window.location = "URL TO SITE YOU WANT TO REDIRECT TO"; </script>
    Thanks to Cyclosaurus for this code
    The Site B link will appear in the navbar of Site A and, when selected, will immediated redirect the visitor to Site B.  Create a similar page in Site B pointing back to Site A.
    OT

  • I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    Hi Crushed,
    Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
    Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
    Regards,
    Ian.

  • How can I print a pages document in book format ..order?

    How can I print a pages document in book format ..order?

    This is usually a function of the driver you're using. Have you looked in the various PDEs for black and white or grayscale? What kind of printer are you using?

  • How can I print half pages to fit in my circa desk calendar

    How can I print half pages from iCal to fit in my Circa desk calendar?

    That depends on the program, but if it's Preview, go to Page Setup... under the File menu. Select the appropriate paper size there. Then go to File > Print... and do a Preview. If the content does not fit on the page, some printer drivers will have a Scale to Fit setting. If there is none, go back to Page Setup... and manually adjust the Scale until it fits nicely when you do a Preview.

  • How can i print specific pages against searched word or name (in one print command) from 1000 pages

    how can i print specific pages against searched word or name (in one print command) from 1000 pages

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • How can i print only pages which have been highlighted, from a multi page file?

    How can i print only pages which have been highlighted, in a multi page file.

    Ah, I see want you mean. This might not be practical for you, but if you select one instance of the highlighted text and add a [space] to the little sticky note, all of the highlighted text on that page will appear in the summary.

  • How can I extract certain pages from my document and save as another file?

    How can I extract certain pages from my document and save as another file?

    You would need Adobe Acrobat to do that, not Adobe Reader.

Maybe you are looking for

  • Creating PDF bookmarks from Outlook 2007

    Hi, I am using Outlook 2007 SP1 and Acrobat 8.1.3 Professional and I want to have bookmarks in the PDF that is created by hitting the Create Adobe PDF from Folders button in Outlook. I used to have this feature when I was using Acrobat 7 with Outlook

  • ROWNUM does not return number

    Hello. I´ve watching many forums but haven´t seen anything about this matter. I have just a test table to create an interactive report. This interactive report has one text_item with a #ROWNUM# but is not returning the number when generating the HTML

  • Turning Spelling and Proofreader option really OFF?

    I have both the Spelling as well as the Proofreading options UNchecked, yet Pages still autocorrects. It has become a real problem since I am wasting time having to go back and correcting to what I wrote additionally, if I hit spacebar it will change

  • In-place upgrade of CF10 from 32-bit to 64-bit?

    We initially installed CF10 32-bit because we had some legacy COM objects that needed to run.  We've finally gotten rid of those objects and I would like to convert to 64-bit.  Is there an easy way to convert/upgrade that would preserve all/most/some

  • N82 Dark Pictures

    Hello, I dropped my N82 on water, and I had to flash the phone to bring it back to life. But when I turned on the Camera, It was REALLY dark. I realize that there is something wrong with hardware, cause I also did a Software Update with Nokia Softwar