hx-request , timeout setting give back an error #1381
-
Hi everyone, When I try <div ... hx-request='\"timeout\":100'>
...
</div> like mentioned on this page https://htmx.org/attributes/hx-request/ I got in return:
So how. should it be writed ? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
RoToRa
Apr 18, 2023
Replies: 2 comments 1 reply
-
I just tried also <div ... hx-request="{'timeout':1000}">
...
</div> But that give the same error. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The example looks wrong there. There shouldn't be backslashes in there. And single quotes are invalid in JSON. Try
or
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BobSquarePants
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The example looks wrong there. There shouldn't be backslashes in there. And single quotes are invalid in JSON. Try
or