VarToLocalFile

Purpose:

Save the variable content into a local file (forced download)

Category:

Files

Syntax:

VarToLocalFile [var name] "filename.txt"

var name

Variable name.

filename.txt

File name (include extension) to save the data.


Example:

VarToLocalFile [myvar] "output.txt"


LoadJS

Purpose:

Load and execute an external JavaScript file.

Category:

Files

Syntax:

LoadJS "url"

url

Path to .js file.

Example:

LoadJS "https://mydomain.com/js/myscript.js"


LoadCSS

Purpose:

Load an external CSS file.

Category:

Files

Syntax:

LoadCSS "url"

url

Path to .css file.

Example:

LoadCSS "https://mydomain.com/css/mycss.css"


LoadHTML

Purpose:

Load an external HTML file into a Container object.

Category:

Files

Syntax:

LoadHTML "container id" "url"
container id

    Container Object Id where the HTML content will be rendered once loaded.

url

Path to .html file.


Example:

LoadHTML "Container1" "https://mydomain.com/html/mywebpage.html"


LoadGoogleFont

Purpose:

Load a Google font so it can be displayed even if not installed on the client system

Category:

Files

Syntax:

LoadGoogleFont "google font name"

google font name

Google font name to load.

Example:

LoadGoogleFont "Open Sans"


FileToVar

Purpose:

Loads an external file content into a variable.

Category:

Files

Syntax:

FileToVar "url" [result var]

url

Path to the file.

result var

Variable to store the loaded content.

Example:

FileToVar "https://mydomain.com/txt/mytext.txt" [myvar]


OnLoadSuccess

Purpose:

Set the subroutine to execute after any successful asyncronous loading

Category:

Files

Syntax:

OnLoadSuccess "subroutine name"

subroutine name

Subroutine name to be called

Example:

OnLoadSuccess "mysubroutine"


OnLoadError

Purpose:

Set the subroutine to execute when an error occurs in any asyncronous loading

Category:

Files

Syntax:

OnLoadError "subroutine name"

subroutine name

Subroutine name to be called

Example:

OnLoadError "mysubroutine"


OnLoadEnd

Purpose:

Set the subroutine to execute when all asynchronous loading have been completed

Category:

Files

Syntax:

OnLoadEnd "subroutine name"

subroutine name

Subroutine name to be called

Example:

OnLoadEnd "mysubroutine"


RemoveOnLoadSuccess

Purpose:

Remove the OnLoadSuccess listener

Category:

Files

Syntax:

RemoveOnLoadSuccess

Example:

RemoveOnLoadSuccess


RemoveOnLoadError

Purpose:

Remove the OnLoadError listener

Category:

Files

Syntax:

RemoveOnLoadError

Example:

RemoveOnLoadError


RemoveOnLoadEnd

Purpose:

Remove the OnLoadEnd listener

Category:

Files

Syntax:

RemoveOnLoadEnd

Example:

RemoveOnLoadEnd


LocalFileToVar

Purpose:

Loads the content of a local file into a variable. You should use this action inside the FileInput Object change event. Note that loading is asynchronous. The content is loaded as text.

Category:

Files

Syntax:

LocalFileToVar "fileinput obj name" [result var]

fileinput obj name

A FileInput Object previously added to the Path to the Work Space. Necessary to allow the user to select the file.

result var

Variable to store the loaded content.

Example:

LocalFileToVar "FileInput1" [myvar]


LocalBinaryFileToVar

Purpose:

Loads the content of a local binary file into a variable. You should use this action inside the FileInput Object change event. Note that loading is asynchronous. The content is loaded as text.

Category:

Files

Syntax:

LocalBinaryFileToVar "fileinput obj name" [result var]

fileinput obj name

A FileInput Object previously added to the Path to the Work Space. Necessary to allow the user to select the file.

result var

Variable to store the loaded content.

Example:

LocalBinaryFileToVar "FileInput1" [myvar]