Using JavaScript


JavaScript is an object-oriented programming language that is commonly used to create interactive effects within web browsers. For more information about JavaScript, see:

Make sure your cost script does not have any syntax errors.Problems with the JavaScript syntax will be highlighted by a red underline in the script editor. If your script has any syntax errors, cost estimates will not be displayed on the New Order form.

Below are some tips for editing JavaScript files.

  • If you copy and paste an existing line or element, make sure you check the commas.

  • Check that all ( ) and { } and [ ] match as expected.

  • Check that all lines within { } end with a semi-colon.