Question 1: How do I add or use jQuery in folder level Adobe Javascript.  Question 2: How to write normal Javascript in file level Adobe Javascript ie., getElementbyid etc...  Please find the below code that shows what I am referring

Here's my level Javascript file, which comes as a Pop up when I click on a created custom button in a PDF reader on your...

I created a Test.js file and then pasted the code below into it. Then I copy paste this file in the following path: C:\Program Files (x 86) \Adobe\Acrobat 11.0\Acrobat\JavaScripts

Now I want to know How to add jQuery Code or the Normal Javascript in the code below. Please give an example.

Note: I do not use forms Javascript here. It is an ACROJS Javascript folder.

Beginning of the Code

app.addMenuItem ({cName: "PERSONAL INFORMATION", cParent: "File", cExec: "helloWorld()"});

helloWorld = app.trustedFunction (function () {var

app.beginPriv ();

Dialog1 var = {}

Description:

{

elements:

[

{

type: "cluster."

name: "invisible."

align_children: 'align_left,

elements:

[

{

type: 'static_text. "

name: 'First Name '.

},

{

type: 'edit_text. "

alignment: "align_fill",.

Width: 300,

height: 20

}

]

},

{

alignment: 'align_left,

type: "ok_cancel."

ok_name: "Ok."

cancel_name: "Cancel".

}

]

}

};

app.execDialog (dialog1);

app.endPriv ();

});

End of the Code

Let's take a step back and understand what is 'normal' JavaScript. Normal to you probably means browser based, but it is only your point of reference. Any implementation of JavaScript includes at least the core JavaScript language, and that's what you have in the two Acrobat JavaScript, but also browser JavaScript. Things like the JavaScript syntax are dealt with in this part of the language, how are managed types (numbers, strings, arrays, classes,...), but also a number of items of library like for example the Date object. In addition to this basic language, almost all JavaScript implementations have a second part, which is the specific application. In the browser, you deal with HTML and windows and other things that have no meaning in the browser environment. In Acrobat, you work with PDF documents, annotations, form fields and more. The specific web browser Javascript is no more or less 'normal' that the implementation in Acrobat. It takes some getting used to a different environment, and what is the Acrobat JavaScript API reference. You will find all the specific objects in Acrobat and methods described in there. What makes things a little more difficult for you, is that you probably don't know corresponding to the line between the core language and browser-specific extensions, so you'll have some re-learning the language in front of you.

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • move or copy large files in Vista 32

    I can't move or copy files with size of GB files but files suits MB seems to wrk.

  • (Redirected) Setting up wifi on Dimension C521

    I have installed windows 7 pro 32 bit on my Dimension C521 desktop computer, and want to download good wifi but dell drivers don't support not windows 7 on this computer. How to choose the drivers.

  • Error initializing DirectX

    Hi, I am trying to install a game called utopia Realms on my computer (Windows 7 service pack 1). However, an error message appears saying: Error initializing DirectX, failed to start the game: your graphics card does not support the minimum element

  • BlackBerry Curve 9330 smartphone restarting

    Is it possible to restart the curve 9330 by pressing the keys rather than remove the battery?  Occasionally a program will not run until I reboot and with the Otterbox I, it's a pain to remove the battery. Thank you Philippe Curve 9330 Sprint network

  • CR2 Canon 60 d and 7 d mkII CR2 files

    I'm under 10 elements on a Windows PC.I can download raw files with the file extension CR2 that have been taken with my Canon 60 d, charging at ACR. However, my beautiful shiny new 7 d Mark II produces raw files with the extension of file CR2, but th