Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Wednesday, 28 May 2014

Rename column name in SharePoint online List View

To rename the Column name in SharePoint Online List view, use the following jQuery


<script type="text/javascript"
    src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js">
</script>
<script type="text/javascript">
    $(document).ready(function () {      
        renameColumnName('Title');
    });
    function renameColumnName(c) {
        $(".ms-formlabel h3 nobr").filter(function () {
            var thisText = $.trim($(this).clone().children().remove().end().text());
            return thisText.indexOf(c) === 0 && thisText.length === c.length;
        }).html('Title1');
    }
</script>

In the rename Column name function first we need to find out the title column and then using HTML function of jQuery we are replacing it.

Tuesday, 11 December 2012

Improve the SharePoint web application performance


Following are few quick tips for improving your SharePoint/ASP.Net web application performance :

1. Use minified or compressed version of the JavaScript files

While referring any third party JavaScript files, try to use their release version for example if we are planning to use the jQuery in your application you should refer minified and Gzipped version (32KB)

<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>

instead of development version (252 KB)

<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script>

You can also minify and compress your js files using Visual studio extension available at

http://visualstudiogallery.msdn.microsoft.com/5469b7e2-90d7-4f54-b299-ae47e26323e6

You can install it in visual studio and at the time of development it self it get compressed. So you can refer the compressed version on your pages.

2. Using Script manager to composite the JavaScript files 

If you are using ASP.NET AJAX in your application, you can create a composite script automatically by using the ScriptManager control. To combine scripts, add the CompositeScript element and list the script references in the order that you want them included in the composite script. 


   <asp:ScriptManager ID="ScriptManager1" runat="server">
    <CompositeScript>
     <Scripts>
      <asp:ScriptReference Path="~/Scripts/Script1.js" />
      <asp:ScriptReference Path="~/Scripts/Script2.js" />
      <asp:ScriptReference Path="~/Scripts/Script3.js" />
     </Scripts>
     </CompositeScript>
  </asp:ScriptManager>



You can find more details about it at -
http://msdn.microsoft.com/en-us/library/cc488552%28v=vs.90%29.aspx



 


Migration issues for SAP.Connector.dll from Win 2003 to Win 2019 server

Recently I got task of migration of asmx web services from windows 2003 to windows 2019 server. These web services fetch data from SAP us...