How to Create an Instant Search Bar With Flask and HTMX

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 40

  • @FirdausAziz
    @FirdausAziz Рік тому +21

    Hi Anthony. Thanks for doing this. Please do more HTMX + HyperScript with Django or Flask.

    • @prettyprinted
      @prettyprinted  Рік тому +2

      I've been meaning to do a video on HyperScript. I'll see what I can do.

  • @chriskeo392
    @chriskeo392 7 місяців тому +3

    Its been 9 months since i been here
    Need more!

  • @goonbreathfpv
    @goonbreathfpv 7 місяців тому

    This is exactly what I wanted to see. You have earned another subscriber

  • @karlduckett
    @karlduckett Рік тому +1

    Great. Love your flask tutorials.

  • @StuartWoodwardJP
    @StuartWoodwardJP Рік тому +1

    Thanks! This is exactly what I wanted to know.

  • @SlawcioD
    @SlawcioD Рік тому +3

    Hi Anthony. THX for your work. Do You have an idea how to paginate active search results? thanks in advance ;)

  • @acrofil1
    @acrofil1 11 місяців тому

    I would love to see some examples like this one for flask/django: adding new input/select fields dynamicaly on button click or on change without page reload using Wtforms and jinja

  • @chriskeo392
    @chriskeo392 Рік тому +1

    Finally flask htmx series!

  • @teclote
    @teclote Рік тому +1

    Wow, amazing, thank you. How to insert an anchor tag into one of the returned fields, so I can click and go to an Edit-Record page? For example, on a "record_id" field.

  • @alexbalak7558
    @alexbalak7558 Рік тому +2

    Great Vidéo as always, love your content learned a lot with it.

  • @pintokatendejonathan1740
    @pintokatendejonathan1740 Рік тому +1

    You are the best

  • @chuisthename
    @chuisthename 11 місяців тому

    ty sir you just saved my BA 😂

  • @Beowolf7308
    @Beowolf7308 Рік тому +1

    Great video, just one question where did you get the data for this video?

    • @prettyprinted
      @prettyprinted  Рік тому

      I got it from here: github.com/HipsterVizNinja/random-data/tree/main/Music/hot-100

  • @adamjohnantonio
    @adamjohnantonio Рік тому +2

    This is awesome - great tutorial as always. Just curious, is there any way to prevent a user from directly accessing the /search route in the browser?

    • @prettyprinted
      @prettyprinted  Рік тому

      The only think of is adding a token to the request that verifies the request came from your generate page instead of people typed directly into the url. This token can expire after a few minutes so the user can't use it whenever they want.

  • @numberformat
    @numberformat Рік тому +2

    Reminds me of Java Server Faces (JSF)

  • @pakistanichanda
    @pakistanichanda Рік тому +8

    Please make tutorial for htmx flask load more , thanks

    • @prettyprinted
      @prettyprinted  Рік тому +1

      I will definitely consider that. Thanks for the idea.

  • @SkySesshomaru
    @SkySesshomaru Рік тому +1

    pretty cool!

  • @jimratliff
    @jimratliff Рік тому +2

    I’m glad to see you doing an htmx tutorial! I’ve gotten very interested in that technology. I know that in Django there are extensions to make working with htmx easier. Is there anything Flask specific for working with htmx?

    • @esma3el5551
      @esma3el5551 Рік тому +1

      Flask-htmx

    • @jimratliff
      @jimratliff Рік тому

      @@esma3el5551 Thanks so much! In retrospect, the package name is pretty obvious 😉, but I was unaware of it.

  • @timmanning9
    @timmanning9 Рік тому +1

    So, there is no API in this example?

    • @prettyprinted
      @prettyprinted  Рік тому +1

      The search endpoint would act in the same way as a regular JSON search API would in a typical JavaScript example.

  • @arshiaa104
    @arshiaa104 Рік тому

    tnx man

  • @user-pw5do6tu7i
    @user-pw5do6tu7i 11 місяців тому

    im new to sqlite, struggling a bit to get things started. im sure its obvious if you know what you are doing but i have no clue lol

  • @S-Lomar
    @S-Lomar Рік тому

    💕💕💕💕💕💕💕💕💕

  • @andregirardifarhat
    @andregirardifarhat 6 місяців тому

    volume audio too low :(