How to open SharePoint modal popup window outside of client webpart (hosted)

I have used SharePoint Client webpart(hosted) and under webpart i have used sharepoint model popup window but once i have click on href link then popup window open within iframe , is there any way we can open popup window on parent page ?


Rampujan Gupta

May 27th, 2015 7:30am

Hi Rampujan,

Per my understanding, you might want to open a popup window in host web page though your app part.

As the app locates in a different domain, the popups inside the app will only display relative to the page in the app part, not the host web page.

A workaround is that, you can use the HTML5 PostMessage API to send communication between app part and host page in SharePoint to make the host page react to the request from the app part.

About how to work with PostMessage API in SharePoint, a demo below would be helpful:

Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 3:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics