Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
591d2e7c
Commit
591d2e7c
authored
8 years ago
by
Rafael Ostertag
Browse files
Options
Downloads
Patches
Plain Diff
Updated PROTOCOL.md
parent
bddd34ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/PROTOCOL.md
+45
-0
45 additions, 0 deletions
doc/PROTOCOL.md
with
45 additions
and
0 deletions
doc/PROTOCOL.md
+
45
−
0
View file @
591d2e7c
...
...
@@ -133,6 +133,51 @@ having the following structure
radio button
`value`
-attribute to be activated in
`"value"`
.
### Form Group Configuration Response
As part of the server response, the JSON stream may contain a key
`element-update`
. This key stores information on how to modify HTML elements identified by
`id`
. Modifying in this
context refers to:
*
Setting attribute values
*
Deleting attributes
*
Setting content of a HTML element.
The content of
`element-update`
is outlined below
{
...
"element-update" : {
"<element_id1>": {
"attr": {
"<attr_name1>": "<value1>" | null,
...
"<attr_nameN>": "<valueN>" | null
},
"content": "<element_content>"
},
...
"<element_idN>": {
"attr": {
"<attr_name1>": "<value1>" | null,
...
"<attr_nameN>": "<valueN>" | null
},
"content": "<element_content>"
}
},
...
}
The presence of
`element-update`
is optional.
`<element_idN>`
refers to the element's
`id`
-attribute value. It used
to uniquely identify the HTML element in the DOM. The properties
`"attr"`
and
`"content"`
are both optional.
Supplying
`null`
as value for
`"<attr_nameN>"`
will remove the attribute from the HTLM element identified by
`"<element_idN>"`
.
If the element has no
`"<attr_nameN>"`
attribute, it will be created. In any case, the attribute's value will be set
to the value specified by
`"<valueN>"`
. See above for handling of
`null`
value.
### Redirection Response
Depending on the request, the server may return redirection
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment