I'm a geekette who enjoys playing with new technology for software developers. I work as a Developer Evangelist for Microsoft. My current focus is on Windows Store development for Windows 8.
In yesterday’s post, we saw how to implement site properties in pinned sites. Today, we will learn to implement Jump List Tasks, which (like the site properties that we looked at yesterday) will apply to anyone who visits the site.
Jump List Tasks are implemented using meta tags in the head block of your HTML. You must specify a name of “msapplication-task” and a content attribute that contains a trifecta of information:
Both of the URIs can be absolute or relative. For the action-uri, any destination is valid; this is not bound to the domain of the webpage like the Start URL property.
Putting this all together, here is what a single Jump List task might look like in your HTML:
<meta name="msapplication-task" content="name=Locations;
In the Jump List, this task will look like the first task below:
When you click on the “Locations” task, you will be taken to http://www.windowsdevbootcamp.com/Location.aspx. The little Windows-like icon next to the “Locations” task was pulled in from http://www.windowsdevbootcamp.com/favicon.ico (the icon-uri).
Now, let’s look at a real-life example from a popular website. Navigate to CNN in Internet Explorer 9. Pin the site and right-click on its taskbar icon. You will see a Jump List like this, with 3 tasks:
You can view the source on this website by pressing F12 to bring up the developer tools. (Make sure that your IE browser window has focus when you press F12. You can also access the developer tools from the Tools menu, represented by a little “gear” icon in the upper right-hand corner of your browser window, and then click “F12 developer tools”.)
When the developer tools are launched, you will see a screen like this:
Expand the plus sign next to the html, and then expand the head section. In the head section, you will see the 3 meta tags that are enabling the tasks:
One last fun fact about Jump List tasks: there is a limitation on the number of Jump List tasks that you can create on a pinned site. A maximum of 5 tasks is allowed.
Stay tuned for the next blog post, when we’ll take a look at dynamic Jump Lists.
Other Blog Posts in this Series
IE Pinned Sites Part 1: What Are Pinned Sites?
IE Pinned Sites Part 2: Why Implement Pinned Sites?
IE Pinned Sites Part 3: How to implement basic site properties
IE Pinned Sites Part 4: How to implement Jump List Tasks
IE Pinned Sites Part 5: How to implement dynamic Jump List Categories
IE Pinned Sites Part 6: How to implement Overlay Icons
IE Pinned Sites Part 7: How to implement Thumbnail Toolbar Buttons
IE Pinned Sites Part 8: How to implement a Flashing Taskbar Button
IE Pinned Sites Part 9: Patterns to make your pinned site code play nice in all browsers
IE Pinned Sites Part 10: Pinned Site Resources