PHP Classes
elePHPant
Icontem

What is the best PHP modal submit form remains opened class?: Make a modal popup that will not close after submit

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP modal submit for...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP modal submit form remains opened class?

A request is featured when there is no good recommended package on the site when it is posted. Edit

by Edy Edward - 21 hours ago (2020-02-13)

Make a modal popup that will not close after submit

This request is clear and relevant.
This request is not clear or is not relevant.

+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 Clarification request
  • 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

    Ask clarification

    1 Recommendation

    PHP Modal Box: Display modal boxes using Bootstrap

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    0

    by Manuel Lemos Reputation 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
    : 
    :