JQuery within SharePoint

We have started to do a lot of work with JQuery to simplify the development process. For those that have not come across JQuery before, it is  " a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript ". The ability to select multiple items on a page with a single line of script is great. For deployment, the library is simply a single  .js file that needs to be put onto the server and referenced on a page.

Aside from the core JQuery library, there are hundreds of plugins (additional script files) such as JQuery UI.

As a starting point, look at Jan Tielens article.

One of the exciting things for me about using this technology is the ability to use on hosted, or shared SharePoint servers (where as a developer you cannot add .dll files, features or solutions). To implement jQuery on a page in this scenario, we could upoad the library (jquery-1.3.2.js) into a document library, add a Content Editor Webpart onto a page then edit the webpart to reference the file and start using it. Imagine, with a Content Editor Web Part and a few script libraries, we could implement a tabbed style webpart, loading data from our lists :)

I'm planning on putting a short series of JQuery articles and links here over the coming weeks

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Content Query - across sites

A previous post indicated about using search to aggregate data. Whilst an acceptable approach (though with some limitations?) another is to go down the route of providing a custom Data Source


Todd Baginski & Andrew Connell have presented and posted information on how to do this - the Content Monster Web Part. don't be put off by the name (those who have seen Todd present can appreciate the left field naming!)

The article has been posted on MSDN and the slide desk from TechEd also

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Send Email Using SharePoint

By using the SPUtility class you can send emails from within SharePoint. The class
will take your default SharePoint email settings and send the email. 

bool sent = SPUtility.SendEmail(<WEB>, false, false, <EMAILADRESS>, <TITLE>, <BODY>);

Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

SharePoint Best Practices Conference UK - Day 3

The final day of the conference - today I focussed on the IT PRO track – all 5 sessions. So that’s Steve Smith, Spencer Harbar, Daniel Wessels, Spencer again, Bob Fox and Brian Wilson, covering Intranets, Extranets, internet sites, search, Kerberos and Virtualising SharePoint.

Steve Smith started the day with a redefinition of WWW, as the wild wild west. It’s an open world out there and as soon as you attach your servers to the internet they’re insecure, you really don’t know who will be accessing your content or trying to do things they shouldn’t.  You have layers of security at the edge, (that may be ISA), IIS and then again at the SharePoint level, with your content  in the database and that’s what you’re delivering or protecting. I suppose it’s obvious really, but the more complex you make things in these layers, the less likely they are to be secure because of mistakes. 

They continued with best practices for your Web applications and SSL scenarios – where Spencer Harbar put in the one liner – “host headers are evil” – but it transpires  that this is only in the context of SSL, where life really is a lot easier if you use fixed IPs and stick to standard port numbers.

Daniel Wessels took us through Search Infrastructure, Architecture, Setup and Management. It seems there are varying rules of thumb for the size of your search DB, depending on which whitepaper or documentation you read, going from 2x to 6x the size of your index, but you won’t really know what that figure will be for you until you run some tests on the mix of data your farm is indexing. Looking at the servers in the farm, the maximum ratios for Query, index and DB server are 7:1:1, above that the performance actually tails off... time for an extra index server and thus another SSP to scale the capacity and performance.

For your default search content access account this really should not be a farm administrator, in this scenario both minor versions and unpublished documents will be indexed and potentially visible to end users. So although if they have not got permissions to see these versions of the documents they won’t be able to see them when clicking on the search result link, they will see the words around the keyword matched in the search results page. Another interesting point was around the content access account used for external websites, here you need to be using an account that has no permissions on your network, because if challenged the indexer will give up the account’s username and password to the external site and you really don’t want that being used to access your network do you?

During the lunch session Andrew Woodward and Alex Pearce gave us a view on some of what is happening in the education space in the UK with SharePoint and showed us a great looking interface for a VLE built with Silverlight sitting on top of the SharePoint Learning Kit for a UK Learning Gateway.

After lunch, Spencer Harbar and Bob Fox took us through setting up Shared Services and Excel Calculation Services to use Kerberos and it went well, apart from the demo on shared services causing some problems, but hey nothing like a live demo to go wrong... but there was good discussion and questions while Spence battled with IIS & SP to get it to work.

Some key pointers from the session – case matters when you are setting your SPNs, and all the SSPs in your farm must be either all NTM or all Kerberos, you can’t mix them.

Brian Wilson finished off the speaker sessions for the day covering virtualisation of SharePoint in a production farm. He addressed the issues of resource usage and how you need to look at this from both a physical and virtual perspective. A key point is that restoring snapshots of a server in the farm is not supported – you are likely to get all sorts of mess and probably database corruption as timer jobs are likely to go out of sync.

The conference was finished off with open mike sessions in all the tracks, it’s great to have the opportunity to ask the experts those questions you find really hard to get answers to. In the IT Pro track we had discussion around admin accounts, should you use a shared account among a team or assign the permissions to users  directly? Generally using a shared account is likely to end up being less secure as those details get shared around, and you would be better assigning the farm admin permissions to the users’ own accounts. This also gives you an audit trail as to who has made the changes. Large databases came up again and some of the issues around that, sometimes you have to remind people to ask the question whether data should really be in SharePoint in the first place.

A good question was how should you structure a support team? Well it depends... :) but a minimum would be one and a half people dedicated to it, so that when that one person is on holiday the half can still pick things up and know how to fix things if problems arise!

And so from SharePoint by day to SharePint by night, the guys at Syntergy gave us a pot for the beer, thanks guys! It was a good chance to chat to some more people and enjoy a beer or two or three... sadly I needed to be on the train home this evening so had to leave early.

And finally, thanks to Steve and co at Combined Knowledge, you have done a great job of this conference and we look forward to the next one...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

64 bit PDF iFilter

I'm a bit late posting this, but as a reminder, Adobe has now released the 64 bit iFilter.

As a reminder, the iFilter is needed to enable the search engine to crawl and index content within PDF files.

Download the iFilter

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Crawling Exchange 2003 Public Folders on SBS 2003 from Moss 2007

Setting this up for the first time was a little challenging. I couldn't figure out why no matter what combination of settings and credentials I gave the search service it wouldn't crawl the public folders. I tried crawl rules, complex URLs, content access accounts, but eventually I gave up focusing on SharePoint options and started to look more closely at what was happening at the other end - what was exchange doing?

I had already checked the IIS settings for the public virtual directory and it showed that Basic and Integrated Windows Authentication were both enabled, so I next tried to hit the public folders URL with it in my local intranet zone so that windows would pass through my credentials automatically - just like we set up SharePoint all the time. Anyhow, I realised that no matter what I did with the IIS settings I couldn't get to the page without first entering my credentials on a form based login for OWA. I googled some more to find that although I was setting the authentication options in IIS, there are some additional settings in Exchange System Manger.

If you open ESM, then expand Servers, <server name>, Protocols, HTTP, you'll find the exchange virtual server, if you right click on the virtual server and select properties on the second tab there is an innocuous little box that says "Enable Forms Based Authentication".

So it didn't matter what I did in IIS Manager because it was overridden by the settings here. Well, someone helpfully pointed out in a forum that you can in fact create a second virtual server and set that to work without Exchange FBA. Yay! That's what I need, our existing users can keep their interaction the same on the current URLs, we'll create a new virtual server and set that not to use Exchange FBA, just Windows Integrated authentication and hopefully our crawl will work fine.

So the crawl has reached the end and 18,224 items are indexed and searchable in milliseconds. Lovely. I just need to make sure I've put all the settings back how they should be (you did make a note of all those changes you made as you fiddled in IIS, Exchange & SharePoint didn't you?) and once I'm happy that the URLs are accesible in the right places the job's done.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

MOSS Search not crawling beyond the first page of a site...

Working on a new intranet site for a client I was puzzled when only the homepage of the root site collection would appear in search results. We have site collections on managed paths below the root site and those weren't showing either. Crawls were running but the crawl log showed "Some parts of this document cannot be accessed". I checked the sharepoint logs and the windows event log, then googled away as usual but there weren't really any further clues, everything seemed to be as it should be.

I tried a reset all content on the search index and this made no difference, next up I tried a new content source as I had I noticed some blogs and forums had mentioned an error meessage saying

The start address http://intranet/sites/sitename is not valid for this content source type.

So I tried creating a content source of SharePoint Sites pointing at the site collections on managed paths, these also gave this message - Ah!, progress I thought as it gave another clue. But alas, no further clues were to be found. In the absence of any further hits on google revealing an insight that would solve it. I tried a restart on the Search Service and the Timer service followed by a full crawl. And straight away the crawl log started to give me more than just one hit on the new location, by the end of the crawl there were all the results I had been expecting first time round.

The only thing I can think confused it was that we recreated the site collections several times during deployment and that caused it to get confused.

I hope that little gem helps you out of a spot if search isn't bringing back the results you're expecting.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

MOSS Query

Found an amazing tool to build queries for MOSS.

http://www.codeplex.com/SharePointSearchServ/

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

 

Dilbert of the day