Sunday, May 29, 2016

iframe removing scroll bars

<iframe frameborder="0" style="height: 1185px; overflow:scroll; width: 100%" src="site url" marginheight="1" marginwidth="1" name="cboxmain" id="cboxmain" seamless="seamless" scrolling="no" frameborder="0" allowtransparency="true"></iframe>

or

<style>
.foo {
  width: 1800px;
  height: 900px;
  overflow-y: hidden;
}
</style>
<iframe src="https://siddiq-sharepoint.blogspot.com/"
        class="foo"
        scrolling="no"
        seamless="seamless">
</iframe>

Thursday, May 19, 2016

Error: WebForms UnobtrusiveValidationMode Requires a ScriptResourceMapping For jQuery in .Net

Open the web config file and you see the below  information
<?xml version="1.0"?>
<configuration>
    <system.web>

      <compilation debug="true" targetFramework="4.5" />

      <httpRuntime targetFramework="4.5" />

    </system.web>

</configuration>
Now you need to add the tags after </system.web>
  <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />

  </appSettings> 

And after adding the tags ,Now web.config shows below info
<?xml version="1.0"?>
<configuration>
    <system.web>

      <compilation debug="true" targetFramework="4.5" />

      <httpRuntime targetFramework="4.5" />

    </system.web>

  <appSettings>

    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />

  </appSettings>

</
configuration>

Wednesday, May 11, 2016

Hide Recent Tab in SP 2013 QucikLaunch


<div dir="ltr" style="text-align: left;" trbidi="on">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

<script type="text/javascript">
jQuery(document).ready(function() {
  jQuery(".ms-core-listMenu-item:contains('Recent')").parent().hide();
});
</script>


</div>

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>