1. Page bootstrap
Server creates G3AXONLIVE object and calls InitPage to detect standard load versus async event request.
AxonLive is integrated directly into AxonASP. User interactions are sent asynchronously, server logic executes securely, and only updated components are patched in the browser.
Server creates G3AXONLIVE object and calls InitPage to detect standard load versus async event request.
g3axonlive.js captures data-g3al attributes and sends event payloads to the runtime endpoint.
AxonLive reads EventComponentID and applies business logic using session-bound state values.
RegisterComponent queues updated fragments and EndAsyncResponse returns JSON patches only.
The client bridge replaces affected components in place without reloading the entire page.
Set AxonLive = Server.CreateObject("G3AXONLIVE")
AxonLive.InitPage()
If AxonLive.IsAsyncRequest Then
AxonLive.SetComponentProperty Session.SessionID, "main", "count", "42"
AxonLive.RegisterComponent "counterDisplay", "<div id='counterDisplay'>42</div>"
AxonLive.EndAsyncResponse()
End If
<script src="/axonlive/g3axonlive.js"></script>
<script>
G3AxonLive.init();
</script>
The builder in www/axonlive/builder offers drag-and-drop page composition and generates server-side JavaScript scaffolding for events and component routing.
AxonLive in WASM maps component operations directly to browser DOM APIs, providing near-instant updates with API compatibility to the server-side model.