Javascript Alert Customization

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

577

Likes

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

Javascript Alert Customization

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

578

Likes

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
May 06, 2019 0
May 06, 2019

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
May 06, 2019 0
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.

Likes

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
Reply
Loading...
May 07, 2019 0
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.

Likes

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
Reply
Loading...
May 07, 2019 0
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.

Likes

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
Reply
Loading...
May 07, 2019 0
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

Likes

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
Reply
Loading...
May 07, 2019 0
May 07, 2019

Copy link to clipboard

Copied

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. 

Likes

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
Reply
Loading...
May 07, 2019 0