# How it works

Stadium applications consist of inter-related components that are arranged and connected in such a way that specific user objectives can be achieved.

***

### Stadium applications

Stadium applications have three main areas of responsibility:

1. [*Pages*](/features/pages.md) contain [*controls*](/controls.md) that display data and that users interact with.
2. [*Connector*](/connectors.md)*s* connect to data sources to fetch, add or change data.
3. [*Event handlers*](https://github.com/stadium-software/docs/blob/main/features/\[_Scripts_]\(../features/scripts-and-event-handlers.md\)-and-event-handlers.md) and [*Scripts*](/features/scripts-and-event-handlers.md) (Javascript) are the glue between page controls and the [*Connector*](/connectors.md)s.
   * Event handlers and [*Scripts*](/features/scripts-and-event-handlers.md) use *actions* to:
     1. Assign data from [*Connector*](/connectors.md)s to controls
     2. Retrieve data from controls to pass on to [*Connector*](/connectors.md)s
     3. Dynamically change control properties and data
   * Event handlers are triggered by [*events*](/features/events.md). When events fire, they run their event handlers. Examples of events:
     * Load
     * Click
     * Change

Stadium applications are designed in [Stadium Designer](/how-it-works/designer.md) and hosted on [Stadium Application Manager](/how-it-works/application-manager.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stadium.software/how-it-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
