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>