• Publicity: Public Only All

html-procs.tcl

Procs to read and manipulate HTML structures

Location:
packages/acs-tcl/tcl/html-procs.tcl
Created:
2015-09-26
Author:
Antonio Pisano

Procedures in this file

Detailed information

util::get_node_attributes (public)

 util::get_node_attributes -node node

Extract attributes names and values from a tDOM node

Switches:
-node (required)
tDOM node
Returns:
List in array get form of attribute names and values for node

Partial Call Graph (max 5 caller/called nodes):
%3 util::html::get_forms util::html::get_forms (public) util::get_node_attributes util::get_node_attributes util::html::get_forms->util::get_node_attributes

Testcases:
No testcase defined.

util::html::get_form (public)

 util::html::get_form -forms forms [ -id id ]

Extract form with the specified id from a structure as that coming from util::html::get_forms proc.

Switches:
-forms (required)
Form structure
-id (optional)
HTML id of the form to be read. If structure contains only one form, this parameter can be omitted, otherwise the proc will throw an error.
Returns:
form structure

Partial Call Graph (max 5 caller/called nodes):
%3 util::http::cookie_auth util::http::cookie_auth (public) util::html::get_form util::html::get_form util::http::cookie_auth->util::html::get_form

Testcases:
No testcase defined.

util::html::get_form_vars (public)

 util::html::get_form_vars -form form

Read vars from a form structure as that coming out from util::html::get_form.

Switches:
-form (required)
Form structure
Returns:
var specification in a form suitable for the vars argument of proc export_vars.

Partial Call Graph (max 5 caller/called nodes):
%3 util::http::cookie_auth util::http::cookie_auth (public) util::html::get_form_vars util::html::get_form_vars util::http::cookie_auth->util::html::get_form_vars

Testcases:
No testcase defined.

util::html::get_forms (public)

 util::html::get_forms -html html

Extract every form's specification from HTML supplied

Switches:
-html (required)
HTML text
Returns:
Form specification as a nested list of lists in array get form

Partial Call Graph (max 5 caller/called nodes):
%3 util::http::cookie_auth util::http::cookie_auth (public) util::html::get_forms util::html::get_forms util::http::cookie_auth->util::html::get_forms dom dom util::html::get_forms->dom util::get_node_attributes util::get_node_attributes (public) util::html::get_forms->util::get_node_attributes

Testcases:
No testcase defined.
[ show source ]