Omni Systems, Inc. |  | Mif2Go User's Guide, Version 55 |  |  |  |  |

> 7 Producing on-line Help > 7.9 Including expandable sections in Help topics > 7.9.7 Deploying JavaScript code for drop-down sections > 7.9.7.3 Directing Mif2Go to write drop-down JavaScript code

#### 7.9.7.3 Directing Mif2Go to write drop-down JavaScript code

By default, Mif2Go does not create an external version of the drop-down JavaScript code. To have Mif2Go write the JavaScript code to a file in the project directory, when you specify a file for DropJSLocation:

[DropDowns]

; WriteDropJSFile = No (default, you provide it) or Yes

WriteDropJSFile = Yes

When WriteDropJSFile=No, Mif2Go assumes that the file you specified for DropJSLocation is an existing JavaScript library that you do not want overwritten.

When WriteDropJSFile=Yes, Mif2Go overwrites the file you specified for DropJSLocation if it is in the project directory, or creates the file if it does not already exist in the project directory.

WriteDropJSFile takes effect only when DropJSLocation=filename (see §7.9.7.2 Locating JavaScript code for drop-down sections). And while any path information included in filename is used in the link in the <head> section, Mif2Go writes the file itself to the project directory, for security reasons. This means that if DropJSLocation specifies a location other than the project directory, you must move the file to the other directory, with a SystemEndCommand setting; see §34.4.1 Specifying system commands.

> 7 Producing on-line Help > 7.9 Including expandable sections in Help topics > 7.9.7 Deploying JavaScript code for drop-down sections > 7.9.7.3 Directing Mif2Go to write drop-down JavaScript code

| Mif2Go User's Guide: 7.9.7.2 Locating JavaScript code for drop-down sections |  | Mif2Go User's Guide: 7.9.7.4 Inspecting the JavaScript code for drop-down sections |