Help Resources

Help Resources

 

Javascript File

Javascript File Object Type Overview

A Javascript File is an object that contains solely Javascript code.

The user is presented with a context sensitive text editor within which they can enter and edit Javascript.

To use the file, the user would associate it to a website template which has pages for which the code is applicable. Generally this would be used by a developer or someone who considers themselves proficient with client-side code and who would like something to occur on several pages, that is not available within the system as standard.

Javascript Files are built into a single cache file that is provided with a web page, when requested from the server. Web pages are made from templates, which can be used to make any number of other web pages. It is therefore likely to be significantly more efficient to associate the javascript to the webpage, rather than to each web page. Furthermore, the Javascript object can be associated to many webpage Templates. This is a classic case of "make it once, use it many times" with the minimum of work.

The system automatically minifies (makes the file as small as possible) the Javascript to reduce the load time of the page.

Javascript File Object Type Properties
  • FileContents - Number Property. The code for the the Javascript File
Javascript File Object Type Interface

Javascript File Object Type Associations