htmx

How can i send form by type into input using htmx?

How can i send form by type into input using htmx? Question: I have a search input and sort select. I wrapped it into form. How can i send form by typing into search input (hx-trigger="keyup changed delay:150ms") or selecting another item in select (hx-trigger="changed"). I need to send data from both of this elements. …

Total answers: 1

Django and HTMX active search issue

Django and HTMX active search issue Question: I’m trying to make an active search with HTMX in Django, and it’s working, but happens that if I delete the search terms in the form the entire page is rendered twice and can`t fix it. This is ok: But this happens if I delete the text introduced …

Total answers: 1

Retrieve hx-include value from HTMX request with Flask

Retrieve hx-include value from HTMX request with Flask Question: I’m trying to send a client side value to the server when a HTMX request is made. I can’t seem to get the value using request.args.get(‘cardCount’)or request.form.get(‘cardCount’). I’m using flask_htmx to catch HTMX requests server side and render partial html. I need to get the cardCount …

Total answers: 1

Django: combine ListView and DeleteView to use with HTMX?

Django: combine ListView and DeleteView to use with HTMX? Question: I’m using Django with HTMX to manage a CRUD table in which I want to list and delete objects. For this, I have a ListView which displays a table (using django-tables) with pagination, sorting, and text search features. It works as expected with HTMX: for …

Total answers: 2

Generate full page or HTML fragment based on request header (HTMX)

Generate full page or HTML fragment based on request header (HTMX) Question: When using HTMX framework with Python Flask, you have to be able to: serve a request as a HTML fragment if it’s done by HTMX (via AJAX) server a request as a full page if it’s done by the user (e.g. entered directly …

Total answers: 3

getting errolist when using htmx and tinymce

getting errolist when using htmx and tinymce Question: Im trying to implement post request with htmx and for rich text editor using tinymce. my form : <!–<form method="POST"> {% csrf_token %}–> <form onsubmit=’copyContent()’ method= "post" hx-post= "{% url ‘forum:forum-detail’ post.pk %}" hx-swap="innerHTML" hx-target = "#comment-list"> <div class="modal-body"> <div class="form-group"> <label for="threadTitle">Your Answer</label> <textarea name="reply" class="form-control …

Total answers: 2