Monday, October 26, 2009

Adding a SlideShow to a SharePoint Site Redux

One of my most popular posts on this blog was a tutorial on adding a slide show to a SharePoint site using HTML, JavaScript and the Content Editor Web Part. If you haven't had a chance to view that tutorial, you can view it at this link: Add a SlideShow to the SharePoint Site using HTML, JavaScript, and the CEWP.

Just as it was one of my most popular tutorials, it was the one that seemed to cause trouble for some of the readers. Two of the most popular questions that I received were:

  • Why am I only getting the first image?

  • Why am I getting red X's?

I created this separate post to address troubleshooting the application.

Check Your Browser Version
Common Symptom: The first picture displays but the slide show doesn't play

To give you more information on the tutorial, I tested the tutorial on the following browsers:

  • Internet Explorer 6

  • Internet Explorer 7

  • Firefox 3.1x

  • Firefox 3.5x

  • Opera 0.9x

I've noticed that in some of the browsers, the comments in the JavaScript caused it to only show the first picture only. Try removing the comments from the JavaScript.

If you're not using the browsers that I've used to test the code, test the code in a stand-alone "test" web page to see if the browser supports the JavaScript. If you do that, make sure that you comment out the _spBodyOnLoadFunctionNames.push("runSlideShow"); line. If the code is not working, it's possible that your browser will not support the JavaScript code.

Also check the user's browser settings. The browser settings may be configured to not run JavaScript. If that's the case, then the script won't run.

Check Your Code

Common Symptom: The first picture displays but the slide show doesn't play; red X's appear instead of images

When I was assisting people with the slide show, I found two common problems:

  • Coders forgot to add the _spBodyOnLoadFunctionNames.push("runSlideShow"); statement before the ending </script> tag

  • Coders were not referencing the correct location for the images

Make sure that the _spBodyOnLoadFunctionNames.push("runSlideShow"); line appears before the closing </script> tag.

If the _spBodyOnLoadFunctionNames.push("runSlideShow"); statement is there, check to make sure that your path to reference the pictures is exactly right (the src property in the <img> tag). If you are having trouble with using the relative path, try referencing the absolute path (ex: If you are still getting the red X, it's possible that the image does not exist where you are referencing.

Check to Make Sure That Other Scripts on the Page Aren't Failing

Common Symptom: The first picture displays but the slide show doesn't play

If the page on the SharePoint site is running other JavaScripts (especially JavaScript that gets added through a feature) and one of those JavaScripts fail before the page gets a chance to load the slide show script, the slide show script won't run. For example, in my environment, we have a feature that adds JavaScript to change the logo. If that JavaScript fails, the slide show stops working. If your slide show is not working, view the errors on your browser to see if there is any JavaScript that's failing.

If You Are Referencing a Document Image Library for the Images, Check to Make Sure That You Have Read Permission on the Library

Common Symptom: The script "hangs", then red Xs appear when the user stops the script from running.

One of the things that readers reported was that their script would "hang", and when the stop the "hanging", it would show a red X. If you are referencing a document library for the images, you will possibly get "hanging" if the viewer does not have read permission to the document library. Either grant the viewers of the site at least read permission to the document image library, or move the pictures to a document image library where the users have read permission.

Hopefully these techniques are helpful. If you have other ideas to help fellow readers who are having trouble with the script, please post your suggestions.

Wednesday, October 21, 2009

Spotlight on Great Tutorial Site for Learning Telecommunications and Network Technologies:RAD University

RAD University -

Follow Dr. Debby Koren, Founder of RAD University, on Twitter (@RAD_U_dean)-

I usually teach network and telecommunications technologies in school, and I'm always trying to find ways to help the students learn the concepts without being completely bored or overwhelmed. Typically, I'll make interactive games in Flash. Unfortunately, I'm not a full-time professor, so my time to create supplemental materials is limited. While I was looking for an interactive example of IP Routing, I stumbled upon RAD University.

Created by Dr. Debby Koren of RAD Data Communications, Ltd., she and her students at Tel Aviv University and other institutions of higher education created interactive tutorials to help students understand concepts in telecommunications, data networking, and computer networking. While these subjects would generally appeal to students studying network engineering, software and computer engineers may also want to view some of these tutorials to help them develop applications for telecommunications or networking.

A complaint that I hear from some of my network technology students is the concepts about telecommunications and networking can be dry, which made it a little difficult for them to really understand it. RAD University's tutorials really make learning about telecommunications and networking interesting by providing fun, interactive exercises to help learn about the topics.

If you are interested in learning about telecommunications and networking in a fun way, or if you are an instructor looking for more exercises to help reinforce learning, check out RAD University. As an instructor, I'm looking forward to directing my students to this site.

Note: The author is not being remunerated by the owners of the RAD University website for the site review, nor does the author have any association or affiliation with the RAD University site.

Thursday, October 15, 2009

WPF Tutorial: Great Site for Learning WPF

WPF Tutorial, by Christian Moser -

I try to keep my finger on the pulse of what technical skills employers are looking for in a particular IT discipline so I can help guide my students with their learning plan to prepare for the work force. One of the technical skills that seems to be in demand with employers looking for .NET developers is WPF. As a student or a professional who's looking to build a skill set, it may be difficult to find a course teaching WPF that's affordable. It may also be time consuming and expensive to find any self-study materials to learn WPF. Christian Moser, a software developer from Switzerland, has solved that problem.

WPF (Windows Presentation Foundation) - a graphical subsystem for rendering user interfaces in Windows-based applications.

Mr. Moser has developed a web site for students (and established IT professionals) who want to learn WPF. His site, WPF Tutorial, is a well-organized, beautifully designed, "one-stop shop" site that provides students with information that they need to learn WPF. Some of the features of the site include:

  • Tutorials to get started with WPF.

  • Informative articles about tools and books that help students learn WPF.

  • My personal favorite - "Learn WPF in two Weeks". Note: this tutorial appears to be incomplete, but there are enough exercises to get started

If you are interested in learning WPF, visit Christian's site by clicking on the link at the top of this post.

Note: The author is not being remunerated by the owners of the WPF Tutorial website for the site review, nor does the author have any association or affiliation with the WPF Tutorial site.

Wednesday, October 7, 2009

Blog of Interest for IT Students -

There was a blog that was brought to my attention that I found to be very interesting to job seekers. The blog is called Career Tips.

Although a number of tips are targeted for people just entering the workforce, a few of the tips posted are also very useful to people in mid-career or people who are changing careers. It's worth a read regardless of what stage you are in a career.

Granted, some of the posts are of little interest to an aspiring IT professional. For example, most IT professionals aren't interested in learning how to write a resume to get a job as a chef. However, many of the posts are relevant and informative. For example, two posts on the blog - tips for searching for a job and choosing a career - are relevant to aspiring IT professionals.

If you're looking for some advice on getting your first job in the industry or changing careers, visit

Note: The author is not being remunerated by the owners of the Career Tips blog for the site review, nor does the author have any association or affiliation with the Career Tips blog.