Ex07 — AJAX JS + jsServer

Browser helpers: sendAjax, getAjaxReturn, form fun-setAJAX, Component fun-submitAJAX / fun-submitWS. Gate responds with $this->jsServer blocks.

Status: idle

1. sendAjax → addJsonHtmlBlock + callJsFunction

Callback from server: —

2. getAjaxReturn → addJsonReturnBlock (JS callback)
(callback JSON here)
3. Form fun-setAJAX → page_event_calc

Result: —

4. sendAjax → addJsonFront (panel swap)
(panel)
5. Component fun-submitAJAX (auto JS, no hand-written sendAjax)

fu_submitAjax binds a DOM event and posts this Component plus optional extra ids. Empty URL → Gate event page_event_{id}_{event}. Pipe syntax: fun-submitAJAX="event,|url,|extraId1,extraId2"

→ uses page_event_calc (reads request / live*)
Live: —

WS twin: fun-submitWS="click,|host,|extraIds,|nativeGate,|evt,|evtp" → callProcessNativeGate (see skill 14 / ex14nativeui).