Template:Ajax

From DFM Wiki
Revision as of 13:29, 12 July 2021 by EricThrift (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template creates a container with a button that, when pressed, will run an external script and load the content returned by that script.

Template parameters

ParameterDescriptionTypeStatus
Instructionsinstructions

Instruction message for the ajax script

Unknownoptional
Scriptscript

Path to the script. This should return html that will be displayed on completion of a successful request.

Example
/cgi-bin/example_script.py
Unknownrequired
Actionaction

Text for the button

Example
Submit
Unknownoptional