-
Hi Egil, I am trying to get the active search https://htmx.org/examples/active-search/ working with Blazor SSR. While I can get the POST request in the Blazor OnInitialized, I cannot seem to find the Body. HtmxRequest does not have it. When using the HTMX element (hard to find any detailed documentation on input with hx-post)
then it appears that the POST body contains e.g. "search=a". Trying to get that value. Do you have any code for this one? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Ok, got it all working. Don't want to mess up your project, but here is the working page. Woohoo! Love the idea. Blazor SSR is crucial to me because of running SSR in AWS Lambda serverless. In such a scenario (which I have been using successfully for numerous client projects) only supports SSR. To fully render this page, you will need bars.svg in folder img under wwwroot to see the searching icon.
|
Beta Was this translation helpful? Give feedback.
-
Nice, feel free to submit a PR with your implementation. Do suggest you change |
Beta Was this translation helpful? Give feedback.
-
Ok resolved. It was because of Microsoft ant forgery token and Data Protection. The HX-XSFR-TOKEN works just fine. Thank you for your notes :) |
Beta Was this translation helpful? Give feedback.
Ok, got it all working. Don't want to mess up your project, but here is the working page. Woohoo!
Love the idea. Blazor SSR is crucial to me because of running SSR in AWS Lambda serverless.
In such a scenario (which I have been using successfully for numerous client projects) only supports SSR.
There is no SignalR or Blazor WASM in the AWS Serverless environment.
To fully render this page, you will need bars.svg in folder img under wwwroot to see the searching icon.
Not sure if line three (the HtmxRoute) is needed.