- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 05:37 AM
Hi All,
I have a popup opened using GlideDialogWindow which opens an UI Page which uses iframe and its source is another UI Page. I am trying to close the pop through client script of referred UI Page, but its not working. Here's the code snippet.
Parent UI Page:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<j:set var="jvar_chgSysId" value="${RP.getWindowProperties().get('chgSysId')}" />
<div class="xm-dialog-form">
<div class="embed-responsive xm-embed-iframe" style="height:700px; width:1000px">
<iframe name="dialog_frame" id="dialog_frame" src="/ui_page_referred.do?sysparm_nostack=true&jvar_chgSysId=${jvar_chgSysId}" class="embed-responsive-item"></iframe>
</div>
</div>
</j:jelly>
Client Script of Referred UI Page:
GlideDialogWindow.get(window.parent).destroy();
//window.parent.close();
Both of above statements are not working. Can you please help me.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 06:08 AM
If you're running this from within the iframe I would take a look at using parent or top to get back to the page hosting the iframe and close the GDW from there.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 06:43 AM
Maybe try it with top instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 06:45 AM
Thanks Brad.. This was helpful. What I did was wrote a client script function in parent UI page which closes the GDW . Then used window.parent.functionName() to call that. That worked for me.
Thanks for the help!!