• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Javascript Alert Customization

Community Beginner ,
May 06, 2019 May 06, 2019

Copy link to clipboard

Copied

Can the javascript alert box be coded so as to display a graphic or a thumbnail of a hyperlinked destination ?

Our use of Acrobat is primarily with PDF AutoCAD drawings.  Our goal is to hover over hyperlinks and bring forth thumbnails of the area hyperlinked, prior to actually going to that destination.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

904

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 06, 2019 May 06, 2019

Copy link to clipboard

Copied

No. You can include graphics in a Dialog object, though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

It may lead to other issues, but if you can replace the hyperlinks with fields, you would have more events at your disposal (such as MouseEnter and MouseExit, which would allow to show/hide other fields, and to load a premade graphic.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

This is not something you can do in an alert or dialog. You're referring to a regular form. That is a better way of doing it, but it's not the same, of course.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

Absolutely correct, and it may lead to a considerable amount of preparing the document. So, it would need some justification to do so.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

Here's a couple of articles that cover popups in Acrobat JavaScript

https://acrobatusers.com/tutorials/popup_windows_part1

https://acrobatusers.com/tutorials/popup_windows_part5

Alerts, Popups, and Other Devices for Interacting with the User

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

LATEST

You can do some tricky stuff with a grid of disabled buttons with transparent button faces that cover the page and then when the user mouses over a hyperlink (which is actually another button field) you set the icon for the button nearest but not overlapping the hyperlink to have the face of the PDF you want to link to. There's a lot of prep work but the results are stunning. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines