Window scroll event is not firing in SharePoint

In SharePoint $(window).scroll() event is not firing because code is load in master page web part zone. SharePoint master page doesn’t use the scrolling on the “body” tag. Add scroll event on div tag with ID=”s4-workspace”. Replace $(window).scroll() code with something like bellow $(‘#s4-workspace’).scroll(function() { alert(‘Hi’);

JavaScript To Split The Words or Concatenated Word

<html> <body> First Word:-Hello<br/> Second Word:-world!<br/> <button onclick=”myFunction()”>Click To Split</button><br/> <pre>Concatenation:-<p id=”orgi”></p><br/> First Word:<p id=”demo”></p> Second Word:<p id=”demo1″></p> <script> function myFunction() { var str1 = “Hello”; var str2 = “world!”; var res =

Detect the device (Mobile/Desktop) in asp.Net

Create a page Desktop.aspx Add the following code in aspx page <asp:Label ID=”lblBrowser” runat=”server” Text = “Desktop” /> Add the following code in code behind(aspx.cs) protected void Page_Load(object sender, EventArgs e) { string userAgent = Request.ServerVariables[“HTTP_USER_AGENT”]; Regex OS = new

SharePoint 2010 User Profile Sync

The SharePoint 2010 User Profile Synchronization is a very complex component in implementation and very fragile in implementation. We have seen a lot of issues in implementing this functionality in our environment. Following are the steps that we have gone through to successfully start a User Profile Synchronization in our environment and some helpful information

NGenious Solutions