Tag Info

New answers tagged

1

This is working: <script src="https://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script><script> $(document).ready(function() { $("a[href$='.pdf']").removeAttr('onclick').attr("target","_blank"); }); </script>


0

This is the behavior you find it in IE11. IE10 it works fine.


1

In a content editor web part source editing, you add the following script: <script language="javascript" type="text/javascript"> _spBodyOnLoadFunctionNames.push("SetTargetBlank('/InsertListNameHere/')"); function SetTargetBlank(ToFindInLink) { // Get the collection of <a> tags var aAllLinks = ...


0

You can get this using the Content Editor Webpart with Javascript coding... <script language="javascript" type="text/javascript"> _spBodyOnLoadFunctionNames.push("OpenPDFInNewWindow()"); function OpenPDFInNewWindow() { var aAllLinks = document.links; for(var i=0;i<aAllLinks.length;i++) { var oA = aAllLinks[i]; var sHREF = ...


1

This is a common scenario that I deal with every day. You cannot do it using SharePoint's out of the box facilities, but it is relatively easy to achieve by doing some development work or buying a third party utility. The approval history, when displayed in SharePoint, is an HTML page. So what you need to do is programmatically convert that HTML page to PDF ...



Top 50 recent answers are included