New answers tagged

0

Did you try the below solution? http://stackoverflow.com/questions/10205192/x-frame-options-allow-from-multiple-domains You may have to allow that specific domain in which you want to show the documents. You can set X-Frame-Options in IIS for the specific site. Click on the site in IIS. In the middle pane look for HTTP Response Headers and add an entry ...


2

You should set the iframe source after you retrieved the data. This should go inside the onQuerySucceeded event as below function onQuerySucceeded(sender, args) { var listItemInfo = ''; var listItemEnumerator = collListitem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); ...


0

You can use JQuery plugin SimpleModal There's an option called "appendTo", where you can tell where do you put your Modal. The only problem with that approach is that the modal's overlay appear with iframe's size, so you must give it your desired width and height after you open it. $('#div-modal').modal({ appendTo: $(window.parent.document).find('body')...


0

The scrollbar comes from within the iframe and is therefore inaccessible by CSS on the hosting page. You can, however, add some JavaScript to the page that is shown in the iframe, that checks the value of a custom parameter in the querystring and adds your overflow:hidden accordingly. JSRequest.EnsureSetup(); if(JSRequest.QueryString["scrollbars"] == "...


0

You can user below script in ScriptEditor webpart below your Page Viewer WebPart to make show it in full page view. <script language=”javascript”> var a = MSO_ContentTable.getElementsByTagName(“table”); MSO_ContentTable.setAttribute(“height”,“100%”); for(i=0;i<a.length;i++) { a[i].setAttribute(“height”,“100%”); } var z = document....


0

Here is a library that can help you: https://github.com/davidjbradshaw/iframe-resizer In this package there are two JS-files, one for the host (SharePoint) and one for the page that you want to show in the iframe. Once both scripts are implemented they will start to negotiate a size for the iframe so that all the content fits inside.



Top 50 recent answers are included