The Script Importing Order section helps you import new scripts, but also organizes the embedded scripts that can be client-side or server-side.
Adding a Script File
In NetObjects Fusion 12, you can add your own script files and specify if the script should be applied throughout the entire Web site, in a specific MasterBorder, or even a specific page.
To add a script file:
Select the Scripts Importing Order button on the Layout or MasterBorder Properties panel.
Click the "+" button to add a new script file.
Select the script file you want to add.
Click the Open button. The Scripts Settings dialog appears.
In the Script Side section, select one of the following two options:
Client Side. Script is run by the Web browser. Client-side scripts allow greater interactivity in a document by responding to user events. The clientside scripts are added to the HEAD section of the HTML page between the Scripts tags.
Server Side. The script is run directly on the Web server generating dynamic HTML pages. Server-side scripting offers you the ability to highly customize the response based on the user’s requirements, access rights, etc. The server-side scripts generate a server-side code that is embedded at the beginning of the generated HTML code. The server-side code might be PHP or ASP.
Note: In the Site Options dialog, you may change the type of the server-side code for the entire site.
If you have previously selected the client-side script option, you also have to select the MIME type of the script from the Select Type drop-down list, or you may enter a new MIME type of the script. By default, the text/javascript type is selected.
In the Script Scope section, you will have to choose where the script file should be applied in this site:
Site-wide. If you select this option, when you publish the site, each page of the site will include the added Script file.
MasterBorder specific. If you select this option, when you publish the site, all the pages that contain the selected MasterBorders will include the added Script file.
Page Specific. If you select this option, when you publish the site, only the selected pages will include the added Script file.
Click the OK button.
The added script file is displayed in the tree displayed within the Script Importing Order section.