Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clients: support async page fetching #614

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miki-totefu
Copy link
Collaborator

An async fetch replaces a section of the page with content without full
page reload. Example syntax:

--form--
type="action" value="/remote/resource"
type="submit" label="Submit Invoice"
type="asynctarget" value="section_one"
--/form--

--section id=section_one --
--/section--

When the form is submitted, brclient/bruig fetches the contents of
/remote/resource, then replaces everything inside #section_one with it.

Sections and forms should not be nested (that is unsupported).

An async fetch replaces a section of the page with content without full
page reload. Example syntax:

--form--
type="action" value="/remote/resource"
type="submit" label="Submit Invoice"
type="asynctarget" value="section_one"
--/form--

--section id=section_one --
--/section--

When the form is submitted, brclient/bruig fetches the contents of
/remote/resource, then replaces everything inside #section_one with it.

Sections and forms should not be nested (that is unsupported).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant