24/7 Support: 800.608.6482

Developer Docs

Try our new AI assistant by clicking the chat icon in the lower right corner.

User Interface

JavaScript Resources

This section describes the options available from the JavaScript Resources tab. This works the same way that CSS resources are managed, as described in User Interface > CSS Resources.

In order for the JavaScript resource to be output, all three of the following criteria must be met. The JavaScript resource must be:

  1. Either global, or assigned to a page that you expect to be output;
  2. Assigned to a resource group, and
  3. That resource group must be output in a template that gets rendered on the page.

Go to Menu> User Interface > JavaScript Resources.

JavaScript Resources

Code – Used to uniquely identify each JavaScript Resource

Type – There are three Resource Types supported:

File Path – The relative path to the local file or the absolute path to the external file. “N/A” for inline script tags.

Tag Attributes – Preview of the script output including custom tag attributes that you have added.

Global – Toggle button determines whether the script appears on all pages. If the script is not global, you can select which pages you want it to appear on.

Active – Toggle button determines whether the JavaScript Resource is active or not. A script must be active to be output to the page.

Select Multiple Records Select Multiple Records. Click on the select button to select entries in the list. Then click on the checkboxes next to the JavaScript entrie(s) you want to edit.
Clear Selection Clear Selection. Click on the clear button to deselect all entries previously selected.
Export to CSV Export to CSV. Click the CSV button to export the JavaScript resource(s) to a CSV file.
Edit JavaScript Resources

Edit JavaScript Resource(s). Click on the edit button to edit the Javascript entrie(s). From here you can change the Code, upload a JavaScript file and edit the Tag Attributes. Click on the sliders to set the JavaScript resource to Global and/or Active (left/gray is off, right/blue is on).

Tag Attributes

To edit Tag Attributes, click on the edit button Edit. The Tag Attributes for Resource: xxx dialog displays. You can export to CSV, change the names and values, add and delete tag attributes here. See Edit Attributes below for details.
Delete Delete JavaScript Resource(s). Delete the selected entrie(s) in the list.
Edit Source

Edit JavaScript Resource Source. Note: this button does not appear when external or multiple JavaScript resources are selected.

This button launches a text window containing the JavaScript source file for editing.

Edit JavaScript Resource File

Click Update to save your changes or Cancel to discard them.

Edit Attributes

Edit Tag Attributes. Note: this button does not appear when multiple JavaScript resources are selected. This button brings up the Tag Attributes for Resource: xxx dialog.

Tag Attributes for Resource

Click on the CSV button to export attribute(s) to a CSV file. Click on the delete button Delete to delete attribute(s). Click on the add button Add Button to add attribute(s).

Click on the edit button Edit to change the Name or Value of attribute(s).

When you are done editing, click the save button Save or cancel Cancelto discard changes.

Tag Attributes for Resource

Pages

Manage Linked Pages for Selected JavaScript Resource.

Note: this button does not appear when multiple JavaScript resources are selected or when the resource is global.

The Pages button brings up a dialog that allows you to assign the JavaScript resource to specific pages. If no pages are assigned and the resource is not marked as global, the JavaScript resource will not be output.

Click the slider button(s) in the Assigned column for the pages you want to assign the JavaScript resource to. Click Close when you are done.

Linked Pages for JavaScript Resource

Resource Groups

Manage Linked Resource Groups For Selected JavaScript Resource. Note: this button does not appear when multiple JavaScript resources are selected.

This button allows you to assign Resource Groups to the JavaScript resource. Click the slider button(s) in the Assigned column for the groups you want to assign the JavaScript resource to. You can add new Resource Groups via the Plus button. Click Close when you are done.

For more information on Resource Groups, see User Interface > Resource Groups.

Head Tag

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2024 Miva®, Miva Merchant®, MivaPay®, MivaCon®, Camp Miva®, Miva Connect®, Miva, Inc. All Rights Reserved.