Tag Info

Hot answers tagged

6

You might try Permissive XFrame Header, which is basically an HttpModule that can be enabled per Web Application.


5

The Office Dev Patterns and Practices repo on GitHub has a great sample for provisioning custom web parts on the host web from inside of an app which should be a viable option for your situation. You could use this pattern to allow users to retrieve a custom configured web part and have it inserted into their host web allowing them to insert it at will (you ...


4

In addition to Milind's answer: it is not good practice to put html directly into the CEWP just because you can. For one, it will only work on some kinds of pages. Web part pages are fine, wiki pages will chew the html. Secondly, it will be hard to maintain, since you will need to edit the web part itself every time you want to make a change. As an ...


4

You can try putting the meta-tag in master page. I had the same issue with SP2010 and it worked there. Or else you can try changing the X-Frame options tag from IIS manager. Here are the steps tpo do so: •Go to Inetmgr -> Select the Web application ->Select and double click the HttpResponseHeaders for the application •Select Add at the right hand side ...


3

Take a look at the Page Viewer web part (http://office.microsoft.com/en-us/windows-sharepoint-services-help/about-the-page-viewer-web-part-HA001160926.aspx ). It uses an iframe.


3

A similar question: Need to expose internal Sharepoint 2010 Document Library to External website IMHO using web service to get documents from SharePoint is right way of doing it. You can handle all login/authentication on your website and you can develop custom control to display sharepoint documents. Using iframe is quick and dirty way of doing it. Some ...


3

Why are you combining jQuery and old-fashioned IE-only DOM code? Try this: <script type="text/javascript" language="javascript"> function CurrentReport() { var link = $(".ms-vb-icon:first a").attr("href"); return "https://intra.sse.gov.on.ca" + link; } $(document).ready(function(){ $("#EPMReport").attr("src",CurrentReport()); ...


2

Have you considered using the Page Viewer Web Part instead of an IFrame? This would allow you to add the pages from within the browser and would retain the functionality. Remember adding JS to a page affects the performance of that page and takes effect as the page is rendered.


2

For full story see SharePoint 2010 and Pdf Integration Series – Part 1 The short story either set Browser File Handling to Permissive Go to SharePoint 2010 Central Administration > Application Management > Manage Web Applications Select the row of your web application Click General Settings in the ribbon Scroll down to Browser File Handling and select ...


2

Displaying a loading indicator on a iframe is quite easy. Just display the loading animation by default over the iframe and hide it when the javascript onload event for the iframe fires - like onload="hideLoading()". In SP there are several ways to do this. You could edit the masterpage and insert the indicator hard, you could build your own pageviewer ...


2

This has nothing to do with any restriction of the internet explorer. This works by design of html. Your src="http://search/Pages/default.aspx" simply doesn't know that it has been loaded in an iframe. In order to get this work you need to add some javascript or modify the master page of your search center and add the following html tag in the header. ...


2

If the iframe contains content from a different domain, there's nothing you can do. Otherwise, if you are on the same domain, Javascript from the parent page can interact with the contents of the frame (change the CSS). The parent's page CSS won't affect the iframe. For more info refer to: http://stackoverflow.com/questions/217776/how-to-apply-css-to-iframe ...


1

Ok, so i think i stumbled upon a method which might solve the issue: The postMessages API. This is nothing SharePoint related but can be used with SharePoint though it features communication between host and iFrame sites. So the way to go should be: postMessage the host site return something unique for the page like the __REQUESTDIGEST or something self ...


1

This is not a problem of SharePoint or the AppModel this needs to be Addressed with signalR. A possible solution is this: http://stackoverflow.com/questions/10089386/signalr-push-notifications-to-all-browser-instances-of-single-authenticated-user You create a subscription Group with the Username, this will dismiss the different user problem. Leaves the ...


1

We had a similar situation with office 365 and yammer embed in IE 11. Enabling Protected Mode for the Trusted Sites Zone (Internet Options > Security > Trusted Sites > Enable Protected Mode) solved it. Apparently Protected Mode used to be on by default in IE but no longer is.


1

Querying and manipulating the DOM elements can be done in SPO Page through App part (Client hosted web part) even though its run inside the iframe on the hosted web page. To do this, you need to wire-up the web part properties with query string as suggested by John-M and I tried few approaches and found none except this idea. SP.RequestExecutor.js doesn't ...


1

Check if X-Frame-Options is set to SAMEORIGIN on the SSRS web server? You can check it in web.config or using the IIS management console Few links which may help you: http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx http://stackoverflow.com/questions/23085306/disable-x-frame-options-in-mvc3-or-iis-7-5 ...


1

Turns out I had to enable this at the Master page level (of the source trying to load within the iFrame): <WebPartPages:AllowFraming runat="server" ></WebPartPages:AllowFraming> Hope this helps someone.


1

I think i would make your custom aspx application do everything that needs to be done and not depend on the OOTB edit form. Then on the ootb edit form, just put some redirect code on the page to take them to your custom application. To the end user it should be a pretty seamless experience. Especially if this is SP 2010 and your edit page is in a modal.


1

Since you can view MySite using PageViewer web part, I'm assuming it's within same domain. <script type="text/javascript"> $(document).ready(function(){ var mySiteIframe = $("#MSOPageViewerWebPart_WebPartWPQ2"); mySiteIframe.load(function(){ window.console && console.log('Loading Iframe'); ...


1

For SharePoint 2010 there won't be an issue in rendering regular pages in an iFrame, but for SharePoint 2013 (and also Excel Services pages) you'll probably run into X-FRAME-OPTIONS: SAMEORIGIN issues. For SharePoint 2013 it is the preferred way to add <WebPartPages:AllowFraming runat="server" /> to the page you're framing. ...


1

From the CRM perspective, no idea! But I guess, basically, you can create a page in SharePoint where you provision your webpart. Then you can create an iframe in CRM with the url to the pageUrl + "isDlg=1" which will hide the header and left nav etc. You must, though, make sure that all users that will be able to see this in CRM also has access to the ...


1

The Content Editor Web Part is intended for adding HTML content to a Web Part Page, it is not designed to link to a Web site. If you need to link to a Web site, consider using the Page Viewer Web Part. -Microsoft- http://office.microsoft.com/en-us/windows-sharepoint-services-help/about-the-content-editor-web-part-HA001160897.aspx


1

The page viewer loads into an iFrame. I would think you would need some fancy javascript on both the parent page and the iframe content. You could then call into the parent and activate the functions. If the content is not hosted on SharePoint you might some XSS issues. Parent: functon next(){ Do something } In the iFrame: <a ...


1

I hope this helps somebody in the future bcos I spent a little while scratching my head on it... If you have blobcache enabled you will not be able to remove the X-Frame-Options header for any file type that's being cached.


1

Change <compilation targetFramework="4.0"/> to <compilation targetFramework="4.5"/>


1

Go to your .cs designer file. Change: protected global::System.Web.UI.HtmlControls.HtmlGenericControl FinalScoreframe; To: protected global::System.Web.UI.HtmlControls.HtmlIframe FinalScoreframe; Will solve your problem. :)


1

SharePoint lists are surfaced as web services so you can use Javascript to call something like SPServices or REST to get the data from a remote list.


1

jQuery.load allows you to pass in a selector to into the url. So you can grab just the top nav bar with something like the following: $("#HeaderFrame").load("/sharepointsite/default.aspx .s4-tn") However, that will likely throw some script errors (just like you described) because none of the sharepoint javascript will be loaded on your custom html page. ...


1

1.Since you are admin , the iframe options are setup in the IIS and its mainly done to avoid Frameable clicking jacking attacks. 2.Page Level : I recommend you goto the specific html page with iframe and add a meta tag eg meta name=”X-FRAME-OPTIONS” content=”ALLOW-FROM” /> If the value contains the token ALLOW-FROM origin, the browser will block ...



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