Messages
Purpose: |
Display a simple JavaScript alert box containing a custom message. The user must to click "OK" to proceed. |
Category: |
Messages |
Syntax: |
jsAlert "message" message Message to show in the alert box. |
Example: |
jsAlert "Hello from VisualNEO Web!" |
Purpose: |
Display a simple JavaScript confirmation box. The user must click either "OK" or "Cancel" to proceed. |
Category: |
Messages |
Syntax: |
jsConfirm "confirmation message" [result var] confirmation message Message asking for confirmation to the user. result var Variable to store the user response. |
Example: |
jsConfirm "Are you sure?" [myvar] |
Purpose: |
Display a simple JavaScript input box and request that the user enter a value before proceeding. |
Category: |
Messages |
Syntax: |
jsPrompt "question" "prefilled answer" [result var] question Question the user must answer. prefilled answer Optional prefilled value for the answer. result var Variable to store the user response. |
Example: |
jsPrompt "What's your prefered software?" "VisualNEO" [userAnswer] |
Purpose: |
Display a themed dialog box containing a title, message and an OK button. |
Category: |
Messages |
Syntax: |
AlertBox "message tittle" "message text" "subroutine name" Title for the dialog box. message text Main message text or HTML subroutine name Optional subroutine to execute when the dialog box is closed. |
Example: |
AlertBox "Greetings" "Hello world!" "mysubroutine" |
Purpose: |
Display a customized dialog box containing a title, message and an OK button. |
Category: |
Messages |
Syntax: |
AlertBox "message tittle" "message text" width height "color" "subroutine name" Title for the dialog box. message text Main message text or HTML width Desired window width (may be narrowed if the screen resolution is not enough). height Desired window height (may be shortened if the screen resolution is not enough)in message text. color Theme color in any allowed HTML format. subroutine name Optional subroutine to execute when the dialog box is closed. |
Example: |
AlertBoxEx "Greetings" "Hello world!" 300 200 "#db761e" "mysubroutine" App example: |
Purpose: |
Display a themed dialog message box with a custom message and buttons. To determine which button was clicked, create a Subroutine with a single integer parameter. This parameter will contain the number of the selected button (1 for first, 2 for second... or zero for none). |
Category: |
Messages |
Syntax: |
MessageBox "message title" "message text" "button1 text|button2 text|button3 text..." "subroutine name" Title for the dialog box. message text Main message text. button1 text|button2 text|button3 text... Buttons caption text separated with a | (Alt Gr -1) character. subroutine name Subroutine to execute when the dialog box is closed where the answer will be sent. |
Example: |
MessageBox "Colors" "Choose a color" "Red|Green|Blue" "mySubroutine" |
Purpose: |
Display a customized dialog message box with a custom message and buttons. To determine which button was clicked, create a Subroutine with a single integer parameter. This parameter will contain the number of the selected button (1 for first, 2 for second... or zero for none). |
Category: |
Messages |
Syntax: |
MessageBox "message title" "message text" "button1 text|button2 text|button3 text..." width height "color" "subroutine name" Title for the dialog box. message text Main message text. button1 text|button2 text|button3 text... Buttons caption text separated with a | (Alt Gr -1) character. width Desired window width (may be narrowed if the screen resolution is not enough). height Desired window height (may be shortened if the screen resolution is not enough)in message text. color Theme color in any allowed HTML format. subroutine name Subroutine to execute when the dialog box is closed where the answer will be sent. |
Example: |
MessageBoxEx "Colors" "Choose a color" "Red|Green|Blue" 300 200 "#db761e" "mySubroutine" |
Purpose: |
Close the application with an optional confirming dialog box. Note: Some browsers and devices will not allow an app to close itself. However, this does work well with Windows exe apps. |
Category: |
Messages |
Syntax: |
Exit "message text" Confirmation message text. |
Example: |
Exit "Close App?" |