Saturday, April 23, 2016

Comparing values

There are lot of dom methods  which are not being supporting by IE 11.I was having task to find the values greater then 21 from html text-box and the dom methods are not going fine for me in IE browser,So by using for loop found the solution

<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<input type="text" id="myDate" value="15,24,26">
<script>
alert("In Script");
var text = ""; var text1= "";
var i; var comma=",";
alert("Came out of comma"); var x = document.getElementById("myDate").value;
alert("Length of the Date is .."+x.length);
for (i = 0; i < x .length; i++)
{
  text += x[i];
  text1=x[i+1];
  alert("Now Text Value is.."+text+"And text 1 is.."+text1+"And i is.."+i);
   if(comma == text1)
     {
  alert("\nNow in Comma State and Text Value is.."+text+"\nAnd text 1 is.."+text1+"\nAnd i is.."+i);  
    if(text>= 21)
        {
document.getElementById("demo").innerHTML = text +"....GREATER THE 21"
       text=" ";i++;
         }
        else
         {
          text=" ";i++;
         }
      }
   else
      {
   alert("text1 is not comma so checking for text which is.."+text);
        if(text>= 21)
        {
document.getElementById("demo").innerHTML = text +"\n....GREATER THE 21"
 
         }
      }
}
</script>
<p id="demo"></p>
</body>
</html>

Wednesday, April 20, 2016

Tuesday, March 15, 2016

Code Hide Quick Launch and site page title

<style>
.ms-core-navigation { DISPLAY: none }
#contentBox { margin-left: 0px }
.ms-core-pageTitle{Display:none !Important;} 
</style>

Wednesday, February 24, 2016

Hidding the Time Line in SharePoint Task List

<style type="text/css">
.ms-tl-mainArea,.ms-tl-selectedFocused > a
{
visibility: hidden;
}
</style>

Hiding the Project Summary In-Build Webpart Title

Changing the font color to white

<style type="text/css">
.ms-webpart-titleText > a
{
color:rgba(255, 255, 255, 1)!important;
}
</style>

Monday, February 15, 2016

UserProfileService.asmx web service Properties

I was fetching several information of  employee  in info-path using  using UserProfileService.asmx,But found bit difficult to find exact name of the columns.Below is the list of all the columns exists in UserProfileService.asmx keeping handy when required


UserProfile_GUID
AccountName
FirstName
SPS-PhoneticFirstName
LastName
SPS-PhoneticLastName
PreferredName
SPS-PhoneticDisplayName
WorkPhone
Department
Title
SPS-JobTitle
Manager
AboutMe
PersonalSpace
PictureURL
UserName
QuickLinks
WebSite
PublicSiteRedirect
SPS-Dotted-line
SPS-Peers
SPS-Responsibility
SPS-SipAddress
SPS-MySiteUpgrade
SPS-DontSuggestList
SPS-ProxyAddresses
SPS-HireDate
SPS-DisplayOrder
SPS-ClaimID
SPS-ClaimProviderID
SPS-LastColleagueAdded
SPS-LastColleagueAdded
SPS-OWAUrl
SPS-SavedAccountName
SPS-ResourceAccountName
SPS-ObjectExists
SPS-MasterAccountName
SPS-DistinguishedName
SPS-SourceObjectDN
SPS-LastKeywordAdded
WorkEmail
CellPhone
Fax
HomePhone
Office
SPS-Location
SPS-TimeZone
Assistant
SPS-PastProjects
SPS-Skills
SPS-School
SPS-Birthday
SPS-StatusNotes
SPS-Interests
SPS-EmailOptin