6 Replies Latest reply on Apr 24, 2009 7:01 AM by Patrick Leckey

    Source code organization: How to divide large JavaScript files into several smaller JavaScript files?



      some of my JavaScripts have become considerably large over time. What I would like to do is to split a single (large) JavaScript source file into several smaller source files plus an additional JavaScript file containing code or directives to recombine the split files.

      In other words, I would like to organize my JavaScript source code into re-usable modules.


      Although I searched the Acrobat JavaScript developer documentation and did a lot of Web searching, I still have no idea...

      1. whether the Acrobat JavaScript scripting environment itself does provide a code structuring mechanism
      2. how to properly organize large Acrobat JavaScripts in general.


      Any help would be greatly appreciated! Thanks a lot in advance!