CalSPUG Meeting – April 22, 2010

Standard

Once again – a long time since I have posted.  Perhaps I should just end trying to post at a pre-defined frequency and aim for something a bit more natural?

At lot has changed for me of the last several months, especially since starting this blog.  One of those things in particular was my decision to move to Calgary, Alberta, Canada.  I was previously living in Toronto, Ontario, Canada – and had been for 4 years – but decided it was time to try out a new city.  So,  I transferred with Ideaca and have taken up residence in the heart of Calgary.

With some of the time I have saved commuting around the Toronto area, I have joined CalSPUG (Calgary SharePoint User Group – www.calspug.org).  I must admit, it’s very rewarding becoming more involved with the SharePoint community as a whole – but especially on the eve of the release of SharePoint 2010.  As such, I would like to highlight, for those in the Calgary area, that we’re having our next meeting on April 22, 2010.  Jason Kaczor is our presenter and the topic is Use SharePoint 2010 and Visual Studio 2010 to boost Productivity.  The meeting will begin sharply at 5:30 PM MDT with a SharePint to follow at the James Joyce (map) at approximately 8:30 PM MDT.  Anyone is welcome.  It’s completely free of charge and pizza and beverages are provided.  Registration is available here.

For those of you whom are unable to attend Thursday evening’s presentation.  Jason will also be presenting this topic on April 19, 2010 at 8:30 AM MDT (breakfast provided) as part of Microsoft’s DevTech Breakfast and User Group tour.

Happy SharePointing!

Using JQuery to "Hide" Empty Divs

Standard

So, I thought it was about time for me to start blogging again.  So much for weekly.  I will shoot for monthly this time!

Anyway, here’s today scenario:

I have a page layout with several fields (plain text or rich html) exposed.  The template is meant to be used for corporate policies which can be very long with many sections or very short with one section and anywhere in between.  What I needed to do was remove the   from child divs that only contained that in the html.

Solution:
With the use of some jquery and a bit of trial and error the code below will do exactly what I wanted.  When the page is rendered the empty lines are removed.  When the page is edited all the field controls are still shown accordingly.

$(document).ready(function() {
	 
	$('.<divclassgoeshere>').each(function() {
		var value=$(this).children(":first").html().toLowerCase();
		if(value=='&nbsp; ') {
			$(this).remove();
		}
	});
});

Enjoy!

Welcome To My Blog

Standard

Hi everyone and welcome to my blog! This is actually my very first blog post ever – on any topic!

Just a little bit about me: I am a SharePoint consultant (Business Analyst by title) with Ideaca Knowledge Services based in Toronto, Canada. I have been actively working with SharePoint for three years now and have been specializing more in the developmental and architectural aspects of SharePoint. In a previous life I worked both with SAP and Microsoft Exchange. In my spare time (yes – I have figured out how to have a life outside of SharePoint – only took 3 years!!) I read, have started to get myself back into decent shape, and intend to spend a significant amount of time outside this summer.

In this blog I intend to cover various aspects of SharePoint with more of a focus towards development. I also plan to post solutions to questions I am asked over the course of my projects (and outside of them), so feel free to email me (gregc at spinsiders dot com) and I’ll do my best to respond. I have a very ambitious goal of posting something at least once a week, so check back often!

If you are less interested in the technical aspects of SharePoint and more interested in the methods that could be employed to gather the requirements for a SharePoint implementation, take a look at my friend & colleague Ruven Gotz’ blog at http://spinsiders.com/ruveng. He has some excellent articles on answering the SharePoint chicken & egg question and how to run the workshops to get to that answer.

Bad Behavior has blocked 37 access attempts in the last 7 days.