Hello Mongoose users, I am wondering if there is a way to handle a POST request without redirecting the caller page to another URL.
Right now in my project Mongoose generates all the HTML pages. At some point the user sends a POST request, Mongoose responds with a courtesy page and then when the POST operation has finished, the courtesy page receives a signal via websocket and redirects to the "/" URL back again. What if the caller page is not generated by Mongoose (let's say a file://mypage.html") ? I would like to write some code as mg_printf that prevents the caller page to change. Is it possible ? This is the HTML code I would like to use: <form action="http://127.0.0.1:9999/loadProjectNoRedirection" method="POST" enctype="multipart/form-data"> Load a project: <input id="loadTrigger" type="file" onchange="document.getElementById('submitTr" name="qlcprj" /> <input id="submitTrigger" type="submit" /> </form> Thanks in advance -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/d/optout.
