bigskysoftware / bigskysoftware/htmx

Extend targets at the server side

Open
#2,378 7 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

**Required Feature**

- Support target specifying outside the AJAX triggering html element.

Currently we are using events to deal with this scenario, but that results in a number of GETs that can be avoided if we use the reuturned HTMX to updated the HAS-TO-BE-UPDATED elements.

**Scenario**
User: connect to the server to login
System: returns an HTML view rendered. (see the attached file)
User:enters some text on the first firstName
System:Automatically updates the other fields based on the entered value.

**Current Approach**
when the user enters some text in the firstName name text field, the element sends a post request to the server. The server then processes the request and generates the html response. in the header of the response, the event names respective to each to-be-updated element. HTMX sends GETs request based on the configuration.

````





WHWHWH Name











Last Name











Password











Date Of Birth











Text Area Test









Save


Cancel



````
.

**The context**

We are working on a components kit in java.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.