User : rumremix

Title User Language Tags Description Date
How to retrieve data from a list in Sharepoint 2013 using oData and JavaScript rumremix JavaScript

The following code fetches contents of each Title field from the list called "LandingMiddleLinks"

May 15
what to do if sharepoint designer gets out of sync with server rumremix Other

check the file out in the browser in spd, right click the file and choose "undo checkout" repeat the last two steps until the checkmark goes away in spd check the file out in spd. it should now get the latest version to edit

March 13
dynamic current year with JavaScript rumremix JavaScript

Often on a page footer, we want a copyright date range starting with the year the website was launched and ending the current year. Doing this dynamically means no need to update on 1/1 every year. The js snippet below uses the server date to accomplish this.

December 28
Fixing IE Z-index with jquery rumremix JavaScript

Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/

December 6
sharepoint 2010 event receiver code that checks in files newly added to style library rumremix C#

Keep the namespace name, class name, guid that VS automatically generates. Make sure all of the "using" inclusions included.

December 4
How to create a sharepoint data form web part that uses only client side JavaScript rumremix XSLT
  1. Create the html/js content that you would like to turn into a web part in the manner you are most comfortable with
  2. Create a dummy page in the site to initially hold our xslt
  3. Open site in Sharepoint Designer
  4. Find the page created in step 1, detach it from the page layout (by right clicking it), and open it for editing.
  5. Place your cursor before the or tag
  6. Paste the code in the source block below.
  7. Find Title="DataView 1" in the code you pasted and replace it with Title="MoreUsefulWebPartName"
  8. Replace the contents between <![CDATA[> with the code you created in step 1
  9. Select all of the code from <WebPartPages:DataFormWebPart...>
  10. Switch from code view to designer view. You may ignore any warning you see about missing data sources.
  11. Click the web part tab
  12. In the "Save Web part" section, select the manner in which you would like to save the new web part.
  13. Give the web part a useful name
  14. Once you make the new web part available in the web part gallery, users may now add your javascript solution to any page as they would any other web part.
September 26
how to use dynamically generated .Net element IDs on page in jquery or css rumremix ASP

In the examples, below, Step1 is the id given to the element. If the element is set to runat="server", when it is rendered on the page, the id will change dynamically to something like ctl00$PlaceHolderMain$Step1. But the actualy value may change. To make sure we capture that actualy value to manipulate the element in javascript or css, use the technique below. Note that this code will need to live on the same page as the element, not in an external js or css file.

September 13
dynamically loading javascript file rumremix JavaScript

see link

July 3, 2012
get hover effect of global nav parent link to roll off at same time dropdown goes away in out of the box sharepoint global nav rumremix JavaScript

The class, "activeDDParent", needs css that will cause the parent to have the same hover effect it has when the mouse hovers over it. This class allows for the out-of-the-box sharepoint rollof delay.

June 15, 2012
custom jquery selectbox dropdown rumremix jQuery

Simple solution found via link. Just edit code from demo page(s). Also http://uniformjs.com/

April 12, 2012
Breadcrumb in Sharepoint 2010 rumremix ASP

Javascript method at end of noted URL. ASP version in code below.

March 1, 2012
Setting up Sharepoint files as a visual studio .Net solution rumremix XML

Setting up a sp .net soln

  1. File --> New --> Project on lhs -> Sharepoint -> 2010 usually select an empty template name the project

to add files, create a module... right-click project --> add --> new item select "module" give the module a name (such as masterpagecatalog) this will create the module, containing an elements.xml file and open the elements.xml file in code editor. Sample.txt will also be created but may be deleted.

Drag any previously created files that will live in the new module into the module icon in solution explorer

Edit elements.xml. (See source area below for example edits to make to elements.xml)

Edits to make to default xml:

in tag, put a url (such as Url="_catalogs/masterpage" ) and put RootWebOnly="TRUE"

The tag will also be created with a default url property. Make sure to edit this so that it is correct. By default, it will create a path starting with the name of the module. And if there is no such folder already with that name beneath the Module path, the feature will create one. The actual path is designated by both the url property and the url property (that is, both of those properties are combined).

Add Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" to the elements. IgnoreIfAlreadyExists="TRUE" means "overwrite existing file". Type="GhostableInLibrary" setting is used when a file is placed into a library. If a file is placed outside of a library, Type="Ghostable" would be used.

Change the tags so that it is not self-closing.

Add some Property tags.Columns in the master page correspond to file object properties indicated in the module xml. Other file properties in the xml will also be added to the "property bag" that do not correspond to master page columns (see tags above).

First, it is good practice to always add

On compliation, Value="$SharePoint.Feature.Id$" will be replaced with guid of feature.

For a master page, the following metadata will be added via the property tags





Make sure to edit the description as appropriate.

When the module was created, VS automatically created a feature called "Feature 1". Note that features may also be created by right-clicking "Features" in soln explorer and selecting "Add Feature".

February 10, 2012
good hr styles rumremix CSS

see other good styles at the url provided

December 3, 2011
hijack submit or save button on sharepoint list form to redirect rumremix XSLT

Comment out the SharePoint:SaveButton tag and replace with input tag

November 2, 2011
How to embed javascript and html inside xslt rumremix XSLT

Place the following inside a <xsl:template> block

October 8, 2011