Posts

How to set as Secure Store Service in SharePoint 2010

Image
This time I'll introduce how to install   SSS (Secure Store Service) in SharePoint 2010 in 9 Easy Steps (tutorial) 1. Go to Central Admin -> Application Management On Service Applications link   Manage services on server 2. Start  Secure Store Service 3. Now, Click Applications Management then Manage Service Applications 4. Click New and then  Secure Store Service 5. Write Your Data 6. Click OK and you get this screen 7. On  Manage Service Applications you can see your service 8. Now you can create a new key - click Generate New Key 9. Write your key It all my friends, Roi

Value does not fall within the expected range

Image
Time introduced some strange problem. I needed to build a list with a lookup field. So build fields.. Then create content type.. and than a list detention.... Just.. Piece of cake. As you know, Lookup field problem must be linked to an existing list. So checking founder of the source list and then create the field. Something that looks like the following code plus or minus < Field Type ="LookupMulti" DisplayName ="Your List" Required ="FALSE" EnforceUniqueValues ="FALSE" Direction ="None" List ="Lists/YourList"      ShowField ="Title" Mult ="TRUE" Sortable ="FALSE" UnlimitedLengthInDocumentLibrary ="FALSE" Group ="YourGroup" ID ="{448f00a7-6cb5-4340-985f-990dd354f135}" SourceID ="{1ce2cabb-bea1-4137-aee8-b4f12b17abcc}"      StaticName ="YourName" Name ="YourName" Version ="3" /> The ...

side by side div with dynamic width

Image
Often we need to build two divs standing side by side, with their width variable (dynamic) The following code - will help you do it < div id ="container" >      < div id ="left" > Div 1 - What is my size </ div >      < div id ="right" > Div 2 -I am the < br /> Right DIV </ div >   </ div > < style type ="text/css" >   #left {   background: #aaa;   float: left } #right {   background: cyan;   overflow: hidden }   #container {   width :400px; }   </ style > Yours, Roi

Support the HTML5 placeholder Attribute in Browsers that do not support it

Image
HTML5 language gives us the possibility of a Placeholder. The placeholder Attribute gives us information on the textbox where we are supposed to use. All you need is to add the same type of input tag. <input type="text" name="first_name" placeholder="First name"> Browsers that do not support it will show like: Browsers that support it will show like: If you want the older browsers will support it, all you have to do is add the following JQuery code: /* Input Tag Placeholder Support*/ function IsInputPlaceholderSupport() {     var i = document.createElement( 'input' );     return 'placeholder' in i; } $(document).ready( function () {     if (!IsInputPlaceholderSupport()) {         var fields = $( 'input' );         for ( var i = 0; i < fields.length; i++) {        ...

Preventing copy-paste all the rich text editor in SharePoint

Image
As part of an accessible Web sites in SharePoint, this time I will present the code prevents the copy-paste. The following code prevents copy-paste content editor rich text field /*  ECM  */ function disablePasteForRTE() {     Type.registerNamespace( "RTE" );     if (RTE) {         if (RTE.RichTextEditor != null ) {             RTE.RichTextEditor.paste = function () {                 RTE.Cursor.paste( true );             }             RTE.Cursor.$3C_0 = true ;         }     } } if (_spBodyOnLoadFunctionNames != null ) {     _spBodyOnLoadFunctionNames.push( 'disablePasteForRTE'...

Construction of correct design patterns in SharePoint

Image
As in the previous post, to avoid content editor put the wrong color and not merit. You need to built styles for content editor How do I add style? Add the following CSS code to the Master-Page h1.ms-rteElement-YourTitle {     -ms-name : " Your Title " ;     font-family : arial ;     font-weight : bold ;     font-size : 14.5pt ;     color : #9bbe08 ;     height : 33px ;     line-height : 33px ; } Thanks, Roi

Prevention design is not good for Accessibility in SharePoint

Image
Often, the editors of the content of Web sites write the content and design they give does not match the colors of the site and do not match the colors of accessibility. To prevent them from putting bright pink, or to establish rules, remove the redundant design. Before After Put the following CSS code in your Master Page (preferably course file) #Ribbon\.EditingTools\.CPEditTab\.Font {     display : none ; } #Ribbon\.EditingTools\.CPEditTab\.Paragraph-Large-0-0-0 , #Ribbon\.EditingTools\.CPEditTab\.Paragraph-Large-0-0-1 {     display : none ; } Yours, Roi