Serengeti::Backend::Native::HTMLFormElement - Deals with properties and methods of forms
Returns the property value from the element when requested from JavaScript.
Object properties:
Scans the element for any descendants which are input-, textarea- or select- elements and wraps these in a HTMLCollection element.
Returns the number of inputs that are descendants of the form.
Returns the name of the form.
Returns the encodning type of the form when sent - normally this is application/x-www-form-urlencoded but if the form contains a file-input the type will be mulitpart/form-data.
application/x-www-form-urlencoded
mulitpart/form-data
Returns the URL which the request will be made to when submitting.
Returns the name of the frame which will be used to do the submit in.
Returns the method the submit will be done in. When actually submitting the only values permitted are POST and GET. If it's neither a GET request will be assumed.
Returns a function that can be called to perform the actual submit. The function optionally takes a object-instance whose key/value paris can override values set on the forms inputs.
object
Returns a function which resets the form to its initial state.
Gathers the values of the inputs in the form and performs the request. Returns a new document instance corresponding to the newly requested page.
To install Serengeti, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Serengeti
CPAN shell
perl -MCPAN -e shell install Serengeti
For more information on module installation, please visit the detailed CPAN module installation guide.