You are here: User Guide > Tasks > Managing JavaScript Libraries > Adding a Library Folder to JavaScript Libraries

Adding a Library Folder to JavaScript Libraries

This procedure describes how to add a library folder to a the JavaScript libraries in your project. Library folders are resources containing source code that you would like to be available to functionalities such as Content Assist, but which are contained in files rather than libraries. Including JavaScript libraries and library folders in your project saves you time in writing and debugging code, as you are re-using debugged code.

JavaScript libraries can only be added to PHP projects with JavaScript support enabled.

 

 

Instructions on how to complete a procedure

  1. To add a JavaScript library folder to your project:

    1. Select Configure from the right click menu of you project in your project directory and select Convert to JavaScript Project.

    2. Go to Project | Properties | JavaScript | Include Path - or - Select Properties | JavaScript | Include Path  from the right click menu of the project folder in your project directory.
      Your project's properties page opens.

    1. In the JavaScript Libraries Properties page click Add a Library Folder.
      The "Library Folder Selection" dialog opens.

    2. Select a folder in the "Library Folder Selection" dialog or create a new folder by clicking Create New Folder.

    3. To apply changes click OK.

Functionalities such as Content Assist will now be able to access the JavaScript library folder. You can see the library folder in the "JavaScript Resources" node in your Project directory.

For information on Managing libraries see Managing JavaScript Libraries.

 

 

Related Links:

JavaScript Libraries

Working with Prototype JavaScript Library

Working with jQuery JavaScript Library

Debugging JavaScript

Managing JavaScript Libraries

Adding a JavaScript Library

Adding a JavaScript User Library

Exporting JavaScript User Libraries

Importing JavaScript User Libraries

Editing JavaScript Libraries

Removing JavaScript Libraries

Managing PHP Libraries

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.