ExecuteSubmitInstruction (open)
Execute a submit instruction
Syntax
LOADLIB "mod::system/lib/webserver.whlib";
MACRO ExecuteSubmitInstruction(RECORD instr)Parameters
RECORD instrSubmitinstruction
RECORD formForm data (only for type 'form')
STRING form.actionForm action URI
STRING form.methodForm method (allowed values: 'GET', 'POST')
RECORD ARRAY form.varsForm variables to post
STRING form.vars.nameName of the variable
STRING form.vars.valueValue of the variable
STRING typeInstruction type ('reload', 'redirect', 'form', 'postmessage', 'close')
STRING urlRedirect URL (only for type 'redirect')
Description
Executes a reload, redirect, form submission or a message to the parent window Types of instruction:
- "reload": Reloads the current page (redirect to GetRequestURL())
- "redirect": Redirect to a specific target URL
- "form": Submits a form to an URL (client-side)
- "postmessage": Posts a message to the window.parent
- "close": Close the current page