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,240Questions: 1Answers: 2,599

    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: 63,498Questions: 1Answers: 10,471 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.