This topic is locked

configuring a button

12/26/2017 9:56:51 PM
PHPRunner General questions
F
francoantonacci author

Greetings, I'm opening a window with "Runner.displayPopup" in "Client Before" Button, using the following script:
var win = Runner.displayPopup( {

url: "tbformapago_add.php",

header: 'Añadir nueva forma de pago',

footer: '<a href="#" onclick="window.win.close();">Close window</a>',

afterCreate: function(win) {

window.win = win;

}

});
then in Server execute a series of php instructions, but I need these instructions to be executed after closing the window that was opened in the previous event, however when opening the window, the execution continues until the end (Client After).

How do I add a pause until I close the window I opened at the beginning?

Sergey Kornilov admin 12/29/2017

It doesn't work this way. Once popup is displayed you have no control over it.