JScriptSrc Property

Official Content
This documentation is valid for:

Allows to manage the Javascript references present in the generated HTML document header for the object.

Description

The Javascript references are managed using a collection of Javascript files. Clear, Add and Item methods are available in addition to the Count property.

Example

This line in the GeneXus object

Form.JScriptSrc.Add('example.js')

will generate the following line in the generated HTML document header

<script type="text/javascript" src="example.js"></script>

When smooth is enabled the generation is as follows, the data-gx-external-script attribute force the script to be included in every refresh.:

<script type="text/javascript" src="example.js" data-gx-external-script></script>

Scope

Objects: Transactions, Web Panels
Controls: Forms
Interfaces: Web

See Also

HeaderRawHTML Property
Meta Property
MetaEquiv Property