I have limited experience with creating websites/front-end - just HTML/CSS - and work mostly on the backend - Node.js in Azure functions.
I have created an Azure function (httptrigger) that I would like a button on my website to hit.
For example, like a search bar, I want a user to type something and click search. After they click search I want to hit the http trigger with the search contents in the query string.
After hitting my trigger, I would then want it to return some data to show on the webpage.
I am struggling with adding the search content to the query string (and perhaps securely hiding the httptrigger endpoint?) and how I would send data back to the html website.
At the moment, I have built the httptrigger to work and return html data via context.res= {body: html}
which works fine when I post the httptrigger url into my browser, but of course I want this to send data back and affect the current webpage with the search bar, by adding the results below it.
Any pointers or tips here would be greatly appreciated as I'm not too experienced sewing the front end together with this.
Thanks!
azurewebsites
? OR should I just host this page on azure. Do you recommend this as the best way going forward? – JDT