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

Web link and LiveCycle Designer...help

corley
Registered: Oct 19 2007
Posts: 23
Answered

Hi,

I'd like to add to a button (or text, or whatever in fact) a web link. I alreader managed to do it but the web page displays in the PDF form it self.

I used this line in the click field
xfa.host.gotoURL ("http://www.google.ca");

The website is appearing in the PDF file itself. I'd like to have it displayed in the default browser.

Is there a way like a javascript to make this possible ?

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
You need to add "1".

xfa.host.gotoURL( "http://www.testurl.com" , 1 ) in the command dialog.

Type "1" to load the link in a external window. The "0" loads the website within the current PDF file.

Also,
- Select JavaScript from the Language drop down.
- Select Client from the Run At dropdown.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

corley
Registered: Oct 19 2007
Posts: 23
Hi,

Thanks for this hint. But I don't want to display the link in another Adobe page, but using the default web browser. In example if user have Firefox, the link will be displayed in it, the same with IE, Opera, etc.

Is there a way to do this ?
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Try using javascipt for launching a browser in the Livecycle click event. For example:
app.launchURL("http://www.acrobatusers.com", true);

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.