These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Actioning Pop Up Menu choice to launch URL in new window in Acrobat 6.

ckh004
Registered: Feb 24 2008
Posts: 3

I’m very new to Javascript in Acrobat and have modified a piece of online tutorial script to launch a two-level pop-up menu in a PDF document in response to a check box being selected...works fine so far.

Now I’d like to action the choice people make using the pop-up menu selection by taking them to an online pdf relevant to their choice.

Essentially – I’m trying to help elementary school teachers at my school implement a simple planning tool that will take them to the professional online references they need to complete the curriculum planning process.

If a teacher chooses Year 3 SOSE Essentials from the pop up menu I’d like that click/return to initiate a new browser window and the launch of the URL and the online pdf that has the Year 3 SOSE Essentials.

Alternatively the Year 3 Assessable Elements, if that is their choice, and so on with Year 5.

I played with app.launchURL but after reading many forums and scouring Google I realised that this app is not supported in Acrobat 6 which is where I’m at. I’m stuck.

Any help with the code to achieve this would be tremendous and really, really appreciated…

Thanks for considering my request for help…

Working Code for the Pop Up menu so far, with my button names:

var strResult =

app.popUpMenuEx({cName:"Year 3 SOSE",oSubMenu:[{cName:"Year 3 SOSE Essentials",cReturn:"Year 3 SOSE Essentials:Essentials"},

{cName:"Year 3 SOSE Assessable Elements", cReturn:"Year 3 SOSE Essentials:Assessable Elements"}]

},

{cName:"Year 5 SOSE",oSubMenu:[{cName:"Year 5 SOSE Essentials",cReturn:"Year 5 SOSE Essentials:Essentials"},

{cName:"Year 5 SOSE Assessable Elements", cReturn:"Year 5 SOSE Essentials:Assessable Elements"}],

});

My Product Information:
Acrobat Pro 6.0.6, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Have you looked at the "getURL()" method of the doc object?

George Kaiser

ckh004
Registered: Feb 24 2008
Posts: 3
Thanks for the reply.

Yes my research in the forums led me to "getURL()" but Im not sure about the code to action the choice made by the teacher.

Thanks so much for replying - the problem here is my ability with coding javascript.