Can we use "preOpen" event in php instead of javascript?
Can we use "preOpen" event in php instead of javascript?
anuj1987kr
Posts: 1Questions: 1Answers: 0
:
Answers
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
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