This topic is locked
[SOLVED]

 How to close a page opened with Runner.displayPopup

5/29/2020 11:46:16 AM
PHPRunner General questions
A
aalekizoglou author

A stated in https://xlinesoft.co..._in_a_popup.htm example 9
in order to close an add/edit page opened with Runner.displayPopup I've placed on the JS onload of the page the below code


if ((proxy['saved']) && window.parent && window.parent.popup) {

window.parent.location.reload();

window.parent.popup.close();

}


but

Sergey Kornilov admin 5/29/2020

Make sure you follow all steps from that instruction. It should work.

A
aalekizoglou author 5/29/2020



Make sure you follow all steps from that instruction. It should work.


You are correct Sergey,
misplaced the code from previous examples



var win = Runner.displayPopup({

...

});


and did not use what is written in example 9



window.popup = Runner.displayPopup({

...

});


My mistake.