Xbasic

a5wcb_editJavascript Function

Syntax

C a5wcb_editJavascript(C JSCode [,C title [,C eventName [,C otherMode [,* ox [,C helpComment [,* lv ]]]]]]) '

Arguments

JSCodeCharacter

A string that contains the JavaScript code to show in the editor.

titleCharacter

Default = "". The title of the Javascript Editor. The title is often the same as the eventName.

eventNameCharacter

Default = "". The name of the event.

otherModeCharacter

Default = "". The type of dialog display. Options include "dialog2" -- this should be the value specified in most cases. Other valeus reserved for internal use only.

oxPointer

Default = null_value(). An options object that defines what tools should be included in the Javascript editor.

helpCommentCharacter

Default = "". An optional help comment to include in the Javascript Editor - shown at the top of the screen. If a help comment is specified, the user can choose to oppress the help comment by typing //nosystemcomment.

lvPointer

Internal Use Only

Description

Used in Component Builder to prompt for javascript code.

Discussion

The a5wcb_editJavascript() function is used in the Component Builder to provide a prompt for editing JavaScript code. It can be used when defining an add-in control to allow the user to define custom JavaScript to execute in Javascript events for the control.

Example

a5wcb_editJavascript("","onInitialize","onInitialize","dialog2")

Limitations

Desktop Applications Only

See Also