Open jpeterse opened 6 months ago
Are you wanting to do it via ajax? Not sure I understand, you will need to add some xhr js to the page
I assume it would have to be done with ajax. But that's only my assumption.
I have not been able to find examples of how I can use that abilities provided within WiFiManager, to update a field on the configuration page dynamically. Users will have to click the refresh button to reload the configuration page to see the updated value.
WiFiManager starts it own web server, when the configuration page is being displayed. I know I can inject java script in the header, and on custom parameters as well. But I don't know if I have access to inject the js code needed to listen for XHR requests.
I was looking to use WiFiManager to do this, because it's a one time configuration, just like setting up the network is. But Is it possible, or is a fools errand to attempt to use custom parameters for this? ;-)
I'm working on an project, where I would like to give users feedback when entering custom parameters in the config panel. I have it sending value updates to a param element using setValue(). But it doesn't look like the element is refreshed on the page until the entire page is refreshed. E.g. like in issue 1464 about logging. I would like for users not to loose their data input, in order to refresh that one field that the code is updating.
Is there a way, that the field can be redrawn/refreshed when setValue() is called?
(BTW, I'm aware setValue() is server side, and I need to update the field client side. Question is, how I can do that.)
Generic Esp8266 Core Version: 2.0.17 Sample code;