Browser interaction and APIs

Connect browser actions to server-side behavior.

Choose the task that matches what you need to do. The pages explain the relevant workflow and link to related guides and reference material. Examples use the local site garden; use your own site name and check the command’s scope before running it.

Start with the greeting model in Expose data through a model, then call it through browser messaging or HTTP. Use wires for declarative page actions and postbacks when an Erlang handler should respond to a form or button. These approaches can coexist on one page.