htmx icon indicating copy to clipboard operation
htmx copied to clipboard

status of the response-targets extension

Open anthonygoslar opened this issue 1 year ago • 7 comments

I'm trying to use the response targets extension but I see that its not in the distribution. When I've tested it there are api methods that aren't named in the htmx.js file. Is this extension meant to be in use or does it require a little work to get up and running?

Thanks

anthonygoslar avatar Jun 15 '23 12:06 anthonygoslar

Can you include a link to the extension you are using?

checketts avatar Jun 15 '23 16:06 checketts

https://htmx.org/extensions/response-targets/

~I've taken the version of both the extension and htmx from the master branch and I can't seem to get them working together nicely.~

Scratch that, I'm an idiot who doesn't know how to use extensions properly. It's all working fine for me!

@anthonygoslar - I'd recommend doing as I've done and use (copy) the htmx.js file directly from src here as well as the response-targets extension file, and then consume them directly. I'm assuming that this extension is waiting on a new release?

gypsydave5 avatar Jun 17 '23 09:06 gypsydave5

Oh I see. It appears that the response-targets extension hasn't been 'released' yet. It is present in the src/ext directory, but not in the dist directory.

@anthonygoslar Here is a copy you could download and host in your project: https://github.com/bigskysoftware/htmx/blob/master/src/ext/response-targets.js

checketts avatar Jun 17 '23 23:06 checketts

Actually downloading response-targets.js doesn't work unless you also download the latest copy of htmx.js (I think it uses some API that are not exported in the released version). Any plan to release a new version ?

raff avatar Jun 30 '23 21:06 raff

Hasn't been released yet... I totally understand that, but the docs literally say something else. This page says <script src="https://unpkg.com/htmx.org/dist/ext/response-targets.js"></script>:

  • https://htmx.org/extensions/response-targets/

atljoseph avatar Jul 04 '23 05:07 atljoseph

I had some build issues. When I get a chance I’ll try pull and see if I can fix it. I’m unfortunately chasing deadlines right now.

On Tue, 04 Jul 2023 at 07:39, atljoseph @.***> wrote:

Hasn't been released yet... I totally understand that, but the docs literally say something else. This page says :

  • https://htmx.org/extensions/response-targets/

— Reply to this email directly, view it on GitHub https://github.com/bigskysoftware/htmx/issues/1497#issuecomment-1619526256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKSDLQ3UBVHEV643LJGXVDXOOT7JANCNFSM6AAAAAAZHYM3AU . You are receiving this because you were mentioned.Message ID: @.***>

anthonygoslar avatar Jul 04 '23 14:07 anthonygoslar

I get it. Thank you. Hope you have a relaxing holiday!

atljoseph avatar Jul 04 '23 17:07 atljoseph

Hi @anthonygoslar are you still having difficulty with this?

alexpetros avatar Jul 18 '23 17:07 alexpetros