ShowButtonText Property

Description

This property specifies the text to be used with the show button for EditLive! for XML. This function can only be used when displaying EditLive! for XML as a button in the browser using the ShowAsButton method.

Syntax

JavaScript

setShowButtonText(strFileURL);

Parameters

strButtonText

A string which is the text to be displayed on the show button for this instance of EditLive! for XML when it is displayed as a button.

Examples

Example 16.31. ShowButtonIconURL Property Example Scripting

The following code would specify that EditLive! for XML is to use the text Show EditLive! for XML when displaying the show button for EditLive! for XML.

JavaScript

editlivejs.setShowButtonText(escape("Show EditLive! for XML"));
...
editlivejs.showAsButton("true");

Note

The string passed to the JavaScript setShowButtonText property must be URL encoded. It is recommended that a server-side URL encoding function be used if available as the JavaScript escape function does not fully comply with the URL encoding standard.

Remarks

This function should only be used when the ShowAsButton method is used to display EditLive! for XML.

The string passed to the JavaScript setShowButtonText property must be URL encoded. It is recommended that a server-side URL encoding function be used if available as the JavaScript escape function does not fully comply with the URL encoding standard.

See Also