<submit>

associates a form with a dataset

JavaScript: submit

Extends Node

Used with form or baseform, the <submit> tag associates the form with its dataset. See <form> tag for example code.

See Also:
Attributes
Name Usage Type (Tag) Type (JS) Default Category
data Tag & JS expression any 0 setter
 

The dataset that specifies the request url, which will also hold the result of the query.


error Tag & JS string String   setter
 

Error from most recent response or empty string; cleared to empty string each time a request on the dataset is made. Default: ''


status Tag & JS string String ok setter
 

Read-only status of data request. Possible values are 'ok', 'requesting', and 'error'. Default: 'ok'.



Attributes inherited from Node

class, classroot, cloneManager, datapath, defaultplacement, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes


Methods

setDataset()
submit.setDataset(dset)

Method to set the dataset associated with form.

Parameters
Name Type Desc
dset LzDataset a dataset.


submit()
submit.submit()

Data from all sibling components and their children will send as a request to the server using 'data' dataset.



Methods inherited from LzNode

animate, applyConstraint, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, init, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption


Events

Events inherited from LzNode

onconstruct, ondata, oninit