libdom
Loading...
Searching...
No Matches
Typedefs | Functions
html_form_element.h File Reference
#include <dom/core/exceptions.h>
#include <dom/core/string.h>

Go to the source code of this file.

Typedefs

typedef struct dom_html_form_element dom_html_form_element
 

Functions

dom_exception dom_html_form_element_get_elements (dom_html_form_element *ele, struct dom_html_collection **col)
 
dom_exception dom_html_form_element_get_length (dom_html_form_element *ele, uint32_t *len)
 
dom_exception dom_html_form_element_get_accept_charset (dom_html_form_element *ele, dom_string **accept_charset)
 
dom_exception dom_html_form_element_set_accept_charset (dom_html_form_element *ele, dom_string *accept_charset)
 
dom_exception dom_html_form_element_get_action (dom_html_form_element *ele, dom_string **action)
 
dom_exception dom_html_form_element_set_action (dom_html_form_element *ele, dom_string *action)
 
dom_exception dom_html_form_element_get_enctype (dom_html_form_element *ele, dom_string **enctype)
 
dom_exception dom_html_form_element_set_enctype (dom_html_form_element *ele, dom_string *enctype)
 
dom_exception dom_html_form_element_get_method (dom_html_form_element *ele, dom_string **method)
 
dom_exception dom_html_form_element_set_method (dom_html_form_element *ele, dom_string *method)
 
dom_exception dom_html_form_element_get_target (dom_html_form_element *ele, dom_string **target)
 
dom_exception dom_html_form_element_set_target (dom_html_form_element *ele, dom_string *target)
 
dom_exception dom_html_form_element_submit (dom_html_form_element *ele)
 
dom_exception dom_html_form_element_reset (dom_html_form_element *ele)
 

Typedef Documentation

◆ dom_html_form_element

typedef struct dom_html_form_element dom_html_form_element

Function Documentation

◆ dom_html_form_element_get_accept_charset()

dom_exception dom_html_form_element_get_accept_charset ( dom_html_form_element * ele,
dom_string ** accept_charset )

◆ dom_html_form_element_get_action()

dom_exception dom_html_form_element_get_action ( dom_html_form_element * ele,
dom_string ** action )

◆ dom_html_form_element_get_elements()

dom_exception dom_html_form_element_get_elements ( dom_html_form_element * ele,
struct dom_html_collection ** col )

Get the form controls under this form element

Parameters
eleThe form object
colThe collection of form controls
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_form_element_get_enctype()

dom_exception dom_html_form_element_get_enctype ( dom_html_form_element * ele,
dom_string ** enctype )

◆ dom_html_form_element_get_length()

dom_exception dom_html_form_element_get_length ( dom_html_form_element * ele,
uint32_t * len )

Get the number of form controls under this form element

Parameters
eleThe form object
lenThe number of controls
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_form_element_get_method()

dom_exception dom_html_form_element_get_method ( dom_html_form_element * ele,
dom_string ** method )

◆ dom_html_form_element_get_target()

dom_exception dom_html_form_element_get_target ( dom_html_form_element * ele,
dom_string ** target )

◆ dom_html_form_element_reset()

dom_exception dom_html_form_element_reset ( dom_html_form_element * ele)

Reset this form

Parameters
eleThe form object
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_form_element_set_accept_charset()

dom_exception dom_html_form_element_set_accept_charset ( dom_html_form_element * ele,
dom_string * accept_charset )

◆ dom_html_form_element_set_action()

dom_exception dom_html_form_element_set_action ( dom_html_form_element * ele,
dom_string * action )

◆ dom_html_form_element_set_enctype()

dom_exception dom_html_form_element_set_enctype ( dom_html_form_element * ele,
dom_string * enctype )

◆ dom_html_form_element_set_method()

dom_exception dom_html_form_element_set_method ( dom_html_form_element * ele,
dom_string * method )

◆ dom_html_form_element_set_target()

dom_exception dom_html_form_element_set_target ( dom_html_form_element * ele,
dom_string * target )

◆ dom_html_form_element_submit()

dom_exception dom_html_form_element_submit ( dom_html_form_element * ele)

Submit this form

Parameters
eleThe form object
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.