Re: Captur POST form and display another html with FS
Posted: Tue Jul 26, 2016 9:24 pm
it is not over doing anything. it is just adding js to esp webserver.
problem with pure html. when you want to update a certain value or a single text on your page, you will have to reload the whole page. refresh the whole page.
but with something like javascript, you dont have to. which is nice.
and that is why websocket is great. better because of its async feat. aside from fast.
Code: Select all
you can change the content of your page without reloading the whole page. something good about javascripting. <script>function redirForm() {document.myform.action = '/data/ssid_connect.html';document.myform.submit();}</script>
Code: Select all
also good.tmp += "<FORM NAME='myform' METHOD='POST' action='/data/ssid_connect_post.html'>";
problem with pure html. when you want to update a certain value or a single text on your page, you will have to reload the whole page. refresh the whole page.
but with something like javascript, you dont have to. which is nice.
and that is why websocket is great. better because of its async feat. aside from fast.