Skip to main content
June 21, 2016
Question

How to make a second link work?

  • June 21, 2016
  • 1 reply
  • 485 views

Document 1 contains a link that takes the user to a named destination is document 2.

var doc2URL = endodeURI('https://.../doc2.pdf');

var doc2 = app.openDoc({ cPath: doc2URL, cFS: "CHTTP"});

doc2.gotoNamedDest('doc2dest');

This works.

Document 2 contains a link that takes the user to a named destination in document 3.

var doc3URL = encodeURI('https://.../doc3.pdf');

var doc3 = app.openDoc({ cPath: doc3URL, cFS: "CHTTP"});

doc3.gotoNamedDest('doc3dest');

This does not work while document 2 is open.

How do I make the second link work?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
June 21, 2016

Is "doc3" disclosed? Are there any error messages in the JS Console?

June 21, 2016

doc3 is not disclosed.

TyepError: doc3 is undefined.

try67
Community Expert
Community Expert
June 21, 2016

Then you should probably disclose it.