Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

6 Producing on-line Help > 6.9 Including expandable sections in Help topics > 6.9.7 Deploying JavaScript code for drop-down sections > 6.9.7.3 Directing Mif2Go to write drop-down JavaScript code


6.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 folder, 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 folder, or creates the file if it does not already exist in the project folder.

WriteDropJSFile takes effect only when DropJSLocation=filename (see §6.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 folder, for security reasons. This means that if DropJSLocation specifies a location other than the project folder, you must move the file to the other folder, with a BookEndCommand setting; see §32.4.2.1 Executing a system command.



6 Producing on-line Help > 6.9 Including expandable sections in Help topics > 6.9.7 Deploying JavaScript code for drop-down sections > 6.9.7.3 Directing Mif2Go to write drop-down JavaScript code