# Framework::refresh\_opener, is it possible to refresh the parent pop up window instead of the main app window?

**URL:** <https://help.egroupware.org/t/framework-refresh-opener-is-it-possible-to-refresh-the-parent-pop-up-window-instead-of-the-main-app-window/74248>\
**Category:** Developers\
**Created:** [January 26, 2020, 5:12pm UTC](https://help.egroupware.org/t/framework-refresh-opener-is-it-possible-to-refresh-the-parent-pop-up-window-instead-of-the-main-app-window/74248 "2020-01-26T17:12:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RalfBecker](https://help.egroupware.org/user_avatar/help.egroupware.org/ralfbecker/32/1307_2.png) [@RalfBecker](https://help.egroupware.org/u/RalfBecker)\
**Post date:** [January 29, 2020, 12:44pm UTC](https://help.egroupware.org/t/framework-refresh-opener-is-it-possible-to-refresh-the-parent-pop-up-window-instead-of-the-main-app-window/74248/2 "2020-01-29T12:44:50Z")

</div>

Framework::refresh\_opener always refreshes the main window because the refresh is carried out by the framework object:

> <https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw.js#L183>

[https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw\_message.js#L351](https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw_message.js#L351)

Only way to avoid that would be implementing an observer in your app.js:  
[https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw\_message.js#L337](https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw_message.js#L337)

If your observer returns true, the the frameworks refresh method is not called. Obviously your observer should carry out the wanted refresh, as it is not happening otherwise.

> Be aware that observer methods get called for refresh requests of other apps too!

Ralf

---

_[View the full topic](https://help.egroupware.org/t/framework-refresh-opener-is-it-possible-to-refresh-the-parent-pop-up-window-instead-of-the-main-app-window/74248)._
