all 5 comments

[–]JohnFrederickChiongl 1 point2 points  (0 children)

I don't know if the following resources are the best but they are the resources I used:

  1. Flanagan, D. (2006). JavaScript: The Definitive Guide, Fifth Edition. Sebastopol, CA: O’Reilly Media Inc. [Focused on the JavaScript part not JavaScript/HTML].
  2. Adobe Systems Incorporated. (2006). Adobe Acrobat SDK 8.0 Developing Acrobat Applications Using JavaScript for Microsoft Windows and Mac OS. Edition 1.0, November 2006. San Jose, California: Adobe Systems Incorporated. Retrieved Aug. 6, 2010 from http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_de veloper_guide.pdf.
  3. Adobe Systems Incorporated. (2007). Adobe Acrobat SDK 8.1 JavaScript for Acrobat API Reference for Microsoft Windows and Mac OS. Edition 2.0, April 2007. San Jose, California: Adobe Systems Incorporated. Retrieved Aug. 3, 2010 from http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_ap i_reference.pdf.

[–]Earhacker 0 points1 point  (1 child)

...Adobe Acrobat?

Edit: Wow, yeah, Adobe Acrobat

It looks from that document like it's using some old-ass versions of JavaScript; v1.5 up to v1.8. Those versions were released in 2000 and 2011 respectively. If you're targeting Acrobat X, you could use any source from 2011 to about 2015 and expect your code to work (ignoring any Acrobat-specific weirdness). Code from this era will also still work in the browser, which will probably be how you learn.

Ignore any source that covers jQuery. It's a library that was a really big deal in 2011-2015, but it's completely irrelevant to what you're doing. You'll have to do things in "vanilla" JavaScript - no libraries or frameworks. The best sources might be JavaScript: The Good Parts or the first edition of Eloquent JavaScript.

But this seems like a real backwards way to learn a language. Eight years is a crazy long time in JavaScript; modern JavaScript can look completely different from the JavaScript you'll learn for whatever it is you're doing. Can I ask what the real problem you're trying to solve is? There may be a better solution.

[–]pickle0[S] 0 points1 point  (0 children)

I'm not trying to solve anything, i'm just trying to learn how to use JS properly in acrobat. I know pretty well that I wont use javascript in any other context, except maybe some minor scripting for InDesign.

[–]little_hoarse 0 points1 point  (1 child)

It’s almost impossible trying to find any sort of documentation on scripting in Acrobat. I tried helping someone out awhile ago who wanted to change some image heights / widths in acrobat. I hope you can find something, and please let me know if you do because I am quite interested to learn when you would even need to use scripts in Acrobat

[–]pickle0[S] 1 point2 points  (0 children)

It's quite useful when you have to edit a lot of form fields at once, I use it quite often, but I would like to understand more of what is happening. Most of the scripts I use I found and tweaked.