Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Getting Started, Learning, Etc.


Thread Tools Search this Thread Display Modes
Old May 23rd, 2017, 12:43 PM
pxp pxp is offline
Forum n00b
Join Date: May 2012
Location: Ohio
Posts: 5
Default Is JavaScript for FusionPro specific to the application?

We have been creating JavaScripts for a number of years mainly by trial and error and by using the samples found in these forums. We have always wondered though if some of the elements in the JavaScripts for FusionPro are specific to the FusionPro application. In other words, are there certain codings and language, etc., that are only used in this application? I've been unable at times to find any reference to some of these codes/language outside of the program (or these forums) which makes it difficult to learn what their functions/uses are without some reference or explanation of their uses.

Is there a comprehensive master Language Reference available specifically for JavaScript for FusionPro? Thx.
Reply With Quote
Old May 23rd, 2017, 01:06 PM
step's Avatar
step step is offline
Senior Contributor
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 957
Default Re: Is JavaScript for FusionPro specific to the application?

Yeah, JavaScript is classically used to interact/manipulate with the DOM in a web browser. Obviously, since FusionPro is not executed within the context of a web browser, there will be some differences between the code found on this forum and a generic JS related article found on the internet. That said, the syntax of the actual JavaScript code are the same across both.

The main difference is that FusionPro has supplied built-in functions and methods that allow you to interact with the FP plugin. The "Field" function, the "FusionPro.Composition.SetBodyPageUsage" method, etc are specific to FusionPro and won't be found in an Angular app (for example). The "Functions" and "Objects" tabs of the "Building Blocks" dialog window define what most of those built-in functions do. But, if you're ever unsure of how a snippet of code found on this forum works, you should feel free to ask.
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 04:25 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.