Skip to main content
7 votes

How to embed Word and PDF documents in pages

Copy the address of a PDF file in a document library. (via the ellipsis) Go to a web part / wiki SharePoint page. Insert Web Part Media and Content > Page Viewer Web Part > Insert Edit web part keep ...
Chris G's user avatar
  • 1,282
3 votes
Accepted

Page viewer web part shows a blank page

This issue usually occurs in case you have edited your page and added the Page Viewer Web Part using Google Chrome! In Google Chrome, the blank page inside the Page Viewer Web Part means This ...
Mohamed El-Qassas MVP's user avatar
2 votes

Load multiple iframe on one page

Your camel is messed up. <View><Query><Where><Eq><FieldRef Name=\'LinkTitle\'/>' + '<Value Type=\'Computed\'>' + parameter + '</Value></Eq>...
Ali Jafer's user avatar
  • 17.8k
2 votes
Accepted

Getting SharePoint Server 2013 to accept a .html page

It's a security measure on the SharePoint-side. This article has some details about this. In short: You can configure this the "simple" way for a SPWebApplication and set Browser File Handling to ...
Nils's user avatar
  • 2,337
2 votes
Accepted

Show "Upload file" dialog from third party site

The SharePoint's upload dialog of a particular library can be accessed from http://site/_layouts/Upload.aspx?List={ID to the library} You can get the ID by e.g. going to the Document Library ...
moe's user avatar
  • 5,277
2 votes

How to set dynamic width and height for iframe in App Part

If the app part is SharePoint OOTB modal then use below javascript var dlg = SP.UI.ModalDialog.get_childDialog(); if (dlg != null) { dlg.autoSize(); } Hope this helps.
Jinesh Kaneriya's user avatar
2 votes

Is there a way to have Script Editor web parts or Content Editor web parts back inside sharepoint online modern pages

To use React js script editor in modern pages you will have to: Upload a spkg file of the solution you have shared in the apps catalog of your tenant. And then install the client side solution on the ...
mohd tahir's user avatar
  • 2,416
2 votes

Remove Scrollbar from iFrame

Try the script below to display specific area of a page using iframe: <div style="overflow: hidden; margin: 15px auto; max-width: 575px;"> <iframe scrolling="no" src="https://<path>" ...
JoannaW_MSFT's user avatar
  • 6,631
1 vote

Prevent a Modern site page from being rendered in mobile view inside sharepoint online

The easiest solution I can come up with that does not include fondeling with 3rd party software or snooping in the web.config file would be to insert either a usercontrol or some javascript on the ...
Naveen Prasath's user avatar
1 vote

Prevent a Modern site page from being rendered in mobile view inside sharepoint online

I think it's impossible to disable mobile view just for one page. But you can disable it for your SharePoint website: Try disabling "Locate Mobile Browser View" feature in Site Settings.
Palina's user avatar
  • 51
1 vote
Accepted

sharepoint 2013 dynamic iframe PDF without OWA in default edit form

At the end I wrote a simple web part that generates an iframe to have pdf displayed. Prerequisites to have it working: A query string passing Item ID and url with list name included (the default ...
luca's user avatar
  • 21
1 vote
Accepted

Edit standard modal dialog (iframe) content - SP2013

If you have Full Control on the site you'll have the permissions to register a scriptlink iirc. Create a file on your computer, call it HideRetainCheckout.js or something and add the following: if (!...
Anders Aune's user avatar
  • 6,278
1 vote
Accepted

Getting "This content cannot be displayed in a frame" on all dialog forms

Alright I managed to solve the problem. Open IIS > Find your site > HTTP Response If there is X-Frame-Options:Deny, Then just remove it or set value to "SAMEORIGIN". Removing X-Frame-Options ...
Asad Refai's user avatar
  • 6,001
1 vote

Iframe Navigation Blocked Script Execution

It sounds like you're encountering a common issue with sandbox restrictions in SharePoint when trying to use iframes for navigation. Unfortunately, SharePoint's security model is quite strict, and it ...
Xyza_MSFT's user avatar
  • 535
1 vote

Can i embed the new arrival section from Monday.com inside SharePoint Online using IFrame

You will need to check the relevant Monday.com documentation or contact their support team for further guidance. As long as you have the appropriate embed code from Monday.com, then there is no reason ...
Callum Crowley's user avatar
1 vote

Minimize and open iframe using react js in SPFX

I believe 'React Iframe' component does not have such a property or event handler that could hide/open the iframe panel. I suggest you wrap this iframe component and a button within a container, use ...
Baker_Kong's user avatar
  • 1,189
1 vote

Make external website only accessible in sharepoint

If you mean that the end user should not be able to write www.youdomain.com in any browser and see the result? No that is not possible. The request and the rendering in the IFrame is the same as if ...
Magnus Danielson's user avatar
1 vote

Why page viewer web part is showing error("This content cannot be displayed in a frame") while using external site link in sharepoint 2016 site?

You can try adding the below tag into the aspx page which was mapped with the Client Web Part. <WebPartPages:AllowFraming runat="server"/> Source: This content cannot be displayed in a frame ...
SP 2022's user avatar
  • 4,114
1 vote
Accepted

Is it possible to have external provider-hosted app work with SharePoint Lists effectively?

I'm not going to answer your question as stated, but provide an alternate approach to your entire solution. Provider hosted apps - how can I phrase this appropriately? Well, they suck. They are a ...
Derek Gusoff's user avatar
  • 8,054
1 vote
Accepted

Get relative URL for a Microsoft article

Edit the URL and remove the "en-us/". When the user visits the link, they should be redirected to the correct language version... if there is one. https://support.office.com/en-us/article/upload-a-...
Mike Smith - MCT's user avatar
1 vote

Hide "+ Add" in iFrame - News Webpart

Customizing the modern sharepoint with custom JS/HTML/Whatever is totally against best practices (established by MS). You have 2 options here if you want to stick to the best practices (im pretty ...
Dante R.'s user avatar
  • 569
1 vote

List column to display embedded iframe

Are you using modern lists? An alternative to embedding an iframe could be to use View Formatting. View formatting simply uses JSON and can really improve the design of a SharePoint list. https://...
user79408's user avatar
  • 1,110
1 vote
Accepted

SharePoint provider hosted app gives iframe warning "This content cannot be displayed in a frame;"

The most likely cause for such behavior is ADFS. When you are not logged in into your myApp.com you redirected to ADFS authentication page. This page by default sets x-frame-options:DENY and it's ...
Sergei Sergeev's user avatar
1 vote
Accepted

Is there a way to configure X-Frame-Options in SharePointOnline?

No. Microsoft has this locked down.
dvdsmpsn's user avatar
  • 231
1 vote
Accepted

Load multiple iframe on one page

You're JavaScript is all in global scope. If you copy the JavaScript multiple times in one page, you still will have only one function retrieveListItems, onQuerySucceeded, onQueryFailed and modIframe....
Nils's user avatar
  • 2,337
1 vote

How to show pop up outside the iframe of the webpart

For me i Use this Method to display the pop-up of the Edit Form for eg. function EditRecordFromList(id) { SP.UI.ModalDialog.showModalDialog({ url: _spPageContextInfo.webAbsoluteUrl + "/Lists/CA/...
Jihen's user avatar
  • 513
1 vote

Display SharePoint Online in an iframe on different domain

Adding AllowFraming option in master page works for SharePoint Online. Turn on the publishing feature and edit the master page to add: <WebPartPages:AllowFraming runat="server" />
Adi S's user avatar
  • 73
1 vote
Accepted

Display SharePoint 2013 in a frame

You cannot do that. Simply because you're trying to encapsulate a cloud-based system into an internal IIS folder structure. You can not add Sharepoint online page in an iframe because of the same ...
Fandango68's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible