Forms¶
- model.Form¶
- Return type:
string
Set this to the HTML you wish to display as a form on your page. It is loaded into your page by the
/PyScriptForm/YourScript
GET request URL.
- model.Script¶
- Return type:
string
Set this to the Javascript you want to run on your page. It is loaded into your page by the
/PyScriptForm/YourScript
GET request URL.
- model.Header¶
- Return type:
string
Set this to the title of your page
- model.HttpMethod¶
- Returns:
Either ‘get’ or ‘post’
- Return type:
string
This readonly property let’s you determine action based on whether it is the initial page load (GET) or the AJAX call from your Javascript (POST)