<submit>
associates a form with a dataset

JavaScript: lz.submit
extends <node> » lz.Eventable »

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

Associates a form with a dataset.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
dataset expression any null read/write
  The dataset that specifies the request url, which will also hold the result of the query.
error string String   read/write
  Error from most recent response or empty string; cleared to empty string each time a request on the dataset is made.
status string String ok read/write
  Read-only status of data request. Possible values are 'ok', 'requesting', and 'error'.

Methods

setDataset()
submit.setDataset(dset : lz.dataset);
[Caution] This method is deprecated
Use setAttribute('dataset', ...) instead.
Method to set the dataset associated with form.
Parameter Name Type Description
dset lz.dataset a dataset.

submit()
submit.submit();
Data from all sibling components and their children will send as a request to the server using dataset.

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy