Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[Added] nuPrompt() JavaScript function

Information about updates, news, Code Library
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

[Added] nuPrompt() JavaScript function

Unread post by admin »

The nuPrompt() function displays a dialog box that prompts the user for input.
nuPrompt.png
nuPrompt.png (11.65 KiB) Viewed 258 times
Show the prompt window:

Code: Select all

nuPrompt('How are you?','Random Question');
Declare a callback function to retrieve the input value:

Code: Select all

function nuOnPromptClose(val, ok) {
 if (ok) {
     nuMessage(['You entered:',val]);
 }
}
Post Reply