Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| scripting:dialogs:multi_listbox [2015/01/20 01:15] – [Dynamic content] admin | scripting:dialogs:multi_listbox [2018/01/10 20:41] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| ===== Items ===== | ===== Items ===== | ||
| - | List Box is filled by // | + | List Box is filled by // |
| ==== Item ==== | ==== Item ==== | ||
| Line 95: | Line 95: | ||
| Creating content dynamically is not straightforward, | Creating content dynamically is not straightforward, | ||
| - | <file javascript multi-list-box.hejs> | + | <file javascript multi-list-box-dynamic-content.hejs> |
| #include " | #include " | ||
| Line 101: | Line 101: | ||
| var dialog_template = | var dialog_template = | ||
| - | '< | + | '< |
| - | < | + | < |
| for(var nItem = 0; nItem < 100; ++nItem) | for(var nItem = 0; nItem < 100; ++nItem) | ||
| - | dialog_template += ' | + | |
| - | dialog_template += ' | + | dialog_template += ' |
| - | <group uniform=" | + | \r\n < |
| - | <button title="& | + | \r\n < |
| - | < | + | \r\n <button title="& |
| - | </ | + | \r\n </ |
| - | </ | + | \r\n</ |
| Output().Clear(); | Output().Clear(); | ||
| Line 120: | Line 120: | ||
| // evaluate here returnCode (returnval of selected button) and decide if varStorage shall be evaluated | // evaluate here returnCode (returnval of selected button) and decide if varStorage shall be evaluated | ||
| - | if ( returnCode == " | + | Output().writeln(" |
| - | | + | Output().writeln(dialog_template); |
| - | Output().writeln(dialog_template); | + | |
| - | // convert VB array to JS array and output it | + | // convert VB array to JS array and output it |
| - | Output().writeln(" | + | Output().writeln(" |
| - | } | + | |
| </ | </ | ||