Hot answers tagged iframe
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());
...
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 ...
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 ...
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
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
You need to change a setting for your web application in Central Administration.
Go to Central Administration > Manage web applications > Your Web application
Select General Settings
Locate Browser File Handling
Select Permissive
Here are the details as stated in Central Administration:
Specifies whether additional security headers are added to ...
Only top voted, non community-wiki answers of a minimum length are eligible