Category: code

Change width of a SharePoint rich text editor (textarea field – multiline text)

A coworker wanted to change the width of a textarea on a new-form. This is, as it turns out, not so easy.
The textarea is a complex component, containing lots of other components.

Get a list of site users with no code via SharePoint Designer

Just like last time, when we created a list containing the sub sites, we can use the data source and a data view to display all site users that have access to a site. 1)Open the site in SharePoint Designer. 2)Go to the Data Sources block and click on the button SOAP Service Connection 3)Add …

Get subsites of a SharePoint 2010 via jQuery

Show all subsites on a SharePoint 2010 page without code via SharePoint Designer

I was looking for an easy way to display a list of subsites in SharePoint 2010 and I couldn’t find it. It seemed you could only do that with some webparts or heavy use of custom code. Then I found Michael Wilcox blog who explains how to do it in SharePoint 2007 and I decided to …

Open a SharePoint 2010 screen as modal dialog wherever you want via jQuery

My coworker at Belfius just found this cool trick to make your input screens cooler. He pointed me to the blog of Tobias Lekman: You can use the SP.UI.ModalDialog namespace via javascript. What his code does is open a SharePoint 2010 screen as modal dialog: The code Simply point the url to the page you …

SharePoint 2010 101 Code Samples pack

Microsoft released a pack containing 101 code samples for SharePoint 2010 on MSDN.
Download the SharePoint 2010 101 Code Samples here

Get / Set the SharePoint UI language code via jQuery / Javascript

I was searching around how to get and set the SharePoint UI language for a user (the language of SharePoint when a user is logged in) for a multilanguage project. John Liu helped me out on the msdn forum: To set the language for a user (make sure you have the required language packs installed) – …

5 tips for more efficient jQuery selectors at sitepoint

The people at Sitepoint just posted this great post about writing more efficient jQuery selectors.

Get or set a SharePoint multiline textfield via jQuery

If you want to get or set a SharePoint multiline textfield in SharePoint via jQuery it is no big deal. Just use this code: Set a SharePoint multiline textfield Get a SharePoint multiline textfield