Can someone explain the difference between the Javascript used in html pages and the Javascript used in Acrobat Pro?
I see a great many web pages with interesting Javascripts. Why would those script be any different than what is used in Acrobat? Couldn't you just copy and pastem?
It always seems as if the scripts used in Acrobat are so unique and customized solely for Acrobat. Javascript is Javascript, isn't it?
Adobe adapted JS to run in some of its applications (by adding special Objects to it), but there are huge differences between the way a browser and HTML pages work and the way Acrobat and PDF files work, for example.
What they share is the basic JS functionality, the core. You can find the core's reference here: https://developer.mozilla.org/en/JavaScript/Reference
So the bottom line is you can't copy a JS from a website and expect it to work in Acrobat as is.
More info about JS: http://en.wikipedia.org/wiki/JavaScript
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com