vendredi 29 juin 2018

How can you show options in dojo dijit/Dialog and process responses with JavaScript?

I want to use dijit/Dialog to display dynamically generated options (maybe as checkboxes) and capture the user's response. For example, I generate three options to go in the dialog box:

Please pick an option:

Option 1
Option 2
Option 3

After the user indicates options 1, 2 and/or 3, I'd like to use JavaScript to collect those answers and send them (with xhr()) to the server for further processing.

I looked at http://dojotoolkit.org/reference-guide/1.10/dijit/Dialog.html, but I don't see any combination of the examples that would put all this together. Does anyone know of a way to do this?

Thanks!




Aucun commentaire:

Enregistrer un commentaire