Wednesday, September 10, 2014


Simple marquee to slide text on mouse hover to start/stop text with anchor tag.


Add the below code in HTML/ CEWP to slide the text left to right. you can also include teh text from Object Model to display dynamically from List.


<div align="center" >
                        <marquee scrollamount="3" style="color: #900000; font-weight: bold; font-size: 20px;    width: 600px;">
<a href="#" onmouseover="this.parentNode.stop();" style="font-size:18px; color:#900000; font-weight:bold;" onmouseout="this.parentNode.start();">Simple marquee. On mouse hover to stop.</a>
</marquee>
  </div>



Happy Browsing!
Relax..

Friday, September 5, 2014

SharePoint 2010/2013 - To hide the List from view lists page.

Many times we create so many list and if we want to hide the list being appear in the setting.aspx page then below steps can be performed.

To Hide List From viewlsts.aspx
  • Open the Site in the SharePoint Designer
  • Select the list which you want to hide and open its setting page section
  • In the settings section >> General Section  - Check the "hide from browser" option
  • Click on Save.
To UnHide List From viewlsts.aspx
  • Open the Site in the SharePoint Designer
  • Select the list which you want to hide and open its setting page section
  • In the settings section >> General Section  - UnCheck the "hide from browser" option
  • Click on Save.


Happy Browsing!
Relax..

Friday, August 15, 2014

SharePoint 2013 - Activate Feature using Client Object Model

You can activate the Site Collection Features / Site Feature using Client Object Model (CSOM) . All you need to do is to put the below code in the script editor or Content Editor Webpart in you page.

 <script src="https://Servername/Shared%20Documents/jquery-1.8.3.min.js" type="text/javascript"></script>

<script type="text/javascript">
var context = SP.ClientContext.get_current();
$(document).ready(function () {
var site = context.get_site();
context.load(site);
context.executeQueryAsync(function () {
site.get_features().add("Enter Feature ID Here", true, 0);
context.executeQueryAsync(Sucess() {
function("Sucess!");
},
function(sender, args){
alert("Error : " + args );
});
},
function (sender, args) {
alert("Oops. Sorry! " + args);
});
});
</script>

 

Happy Browsing!
Relax..