All requests | > | What is the best PHP modal submit for... | > | Request new recommendation | > | Featured requests | > | No recommendations |
by Edy Edward - 21 hours ago (2020-02-13)
+1 | I want to make a modal popup in which I can translate a word, but modal popup closes after clicking the submit button. How can I make it not close after using the submit button? |
1. by adriano ghezzi - 2 hours ago (2020-02-14) Reply
This is html/javascript problem if you do standard post of your form the page is gone away. You must do a simple ajax call to post your data so page still and modal stay there until you close it via javascript
0 | by Manuel Lemos 18100 - 2 hours ago (2020-02-14) Comment It seems this is more a JavaScript problem. Anyway this class can generate HTML for modal window that appear on the page and has some form buttons. What you can do is to use some JavaScript code to handle the onclick events for the buttons that are generated. Then you can make that JavaScript code send an AJAX request to the server that performs the world translation task you want and returns the response so you can update the page with the translation without closing the modal window. |
Recommend package | |
|