Sharepoint provider hosted app - postback loading and popup position

Hi

I am new to sharepoint provider hosted app.

1) Since postback of app happens inside iframe, users are not able to identify if they have clicked the button or not. Is there a way to show loading image on browser?

2) we have popups inside the app, which is displayed in the middle of app page, not the sharepoint page. Is there anyway to display it at the centre of the screen, so that users don't want to scroll the page to findout the popup?


May 21st, 2015 4:46am

Hi,

Per my understanding, you might want to set custom style in your App part to make it work smoothly with host page in a SharePoint site.

For the first question about notifying users the click status of a button, a thought is that you can set the style of the button dynamically using JavaScript in the page of the App part by listening the click event of this button.

For the second question, 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 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 respond to the change in app part.

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

http://blog.ctp.com/2014/02/05/resizing-app-parts-with-postmessage-in-sharepoint-2013/

Thanks
Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2015 2:11am

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

Other recent topics Other recent topics