Can we use "preOpen" event in php instead of javascript?

Can we use "preOpen" event in php instead of javascript?

anuj1987kranuj1987kr Posts: 1Questions: 1Answers: 0
edited December 2021 in Editor

:

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    You can't use preOpen in PHP, as that JS method is client-side in the browser - the server only gets involved when the data is submitted by the user. Once submitted, there are events there that you can latch onto to, see the manual page for more info.

    What use case did you have in mind?

    Colin

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    One option might be to use preOpen on the client-side to send an Ajax request to the server, to tell it to do whatever it is you need to do.

    Allan

Sign In or Register to comment.