Monday, September 20, 2010 10:09 PM Vimpyboy

New Internet Explorer 9 APIs

Internet Explorer 9 Beta 1 introduces some new APIs to make it possible to integrate with the jump lists and icons on the taskbar. To make it easier to use them, I created an even simpler API.

To test the API you can browse (with Internet Explorer 9) to this page:
http://bit.ly/dhQpEB

You will then see this:

ie9-1

The API allows you to see whether the browser supports the API or not. So far, the only browser that supports them is Internet Explorer 9. If more browsers add support for it, it will be easy to integrate it as well.

The first thing we need to do before using the functions is to pin the site at the taskbar. To do it, just drag the tab or favicon to the taskbar and release it there. You will then get an icon with custom options on the jump list:

ie9-2

To have custom items as default, I added these meta tags:

<meta name="msapplication-task" content="name=Twitter;action-uri=http://twitter.com/vimpyboy;icon-uri=/ie9/content/twitter.ico">
<meta name="msapplication-task" content="name=Blog;action-uri=http://weblogs.asp.net/mikaelsoderstrom;icon-uri=/ie9/content/blog.ico">

It´s really simple to do and we will also get customized buttons for back and forward automatically based on the favicon:

ie9-3

So what can we do with the API? I have added support for most of the new features in Internet Explorer 9.

Pin to Start Menu

You can ask the user to add a shortcut to the Start Menu in Windows using:

windowsIntegration.pinToStartMenu();

This will display:

ie9-4

Add Jump list category with items

If you want a more dynamic jump list with your own items, you can use something like:

var items = [{
     'name': 'MSDN',
     'url': 'http://www.msdn.com',
     'icon': 'Content/twitter.ico'
}, {
     'name': 'Internet Explorer 9',
     'url': 'http://msdn.com/ie',
     'icon': 'Content/blog.ico'
}];
 
windowsIntegration.addJumpListCategory('Links', items);

This will add a new category, “Links”, with the custom items specified:

ie9-5

To remove the custom category with its items, you can use:

windowsIntegration.clearJumpList();

Flash button

If you want to alert the user, you can make the button flash, if it´s in the background. To do it, use:

windowsIntegration.flash();

Add overlay image

Another way to alert the user is to use an overlay image. This function adds an overlay:

windowsIntegration.addOverlay('Content/Refresh.ico', 'Text!');

And this removes it:

windowsIntegration.clearOverlay();

The button looks like this when we add an overlay:

ie9-6

Use it on your own site

If you want to use this on your own site, please download the JavaScript file that makes this easier. You can find the files for this demo here:

http://bit.ly/ar0hLh

And if you want to try it out, look here:

http://bit.ly/dhQpEB

Filed under: , ,

Comments

# Twitter Trackbacks for New Internet Explorer 9 APIs - Mikael S??derstr??m [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 New Internet Explorer 9 APIs - Mikael S??derstr??m         [asp.net]        on Topsy.com

# re: New Internet Explorer 9 APIs

Friday, September 24, 2010 7:25 PM by bukmacher online

Wreszcie znalazlem blog o tematyce ktora mnie interesuje, czekam na wiecej ciekawych artykulow

<a href=http://www.i-bukmacher.pl>bukmacher</a>

# re: New Internet Explorer 9 APIs

Friday, March 18, 2011 8:35 PM by KemeImmolfefe

I’ve been visiting your blog for a while now and I always find a gem in your new posts.  Thanks for sharing.

# re: New Internet Explorer 9 APIs

Tuesday, March 22, 2011 4:07 PM by generic

Surprisingly! It is like you understand my mind! You seem to know so much about this, just like you wrote the book in it or something. I think that you can do with some pics to drive the content home a bit, but other than that, this is informative blog post. A good read. I’ll definitely revisit again.

# re: New Internet Explorer 9 APIs

Tuesday, March 22, 2011 7:48 PM by generic viag`З

graet site. Keep doing

# re: New Internet Explorer 9 APIs

Monday, May 30, 2011 11:39 AM by weblogs.asp.net

New internet explorer 9 apis.. Dandy :)

# re: New Internet Explorer 9 APIs

Friday, August 12, 2011 10:29 AM by pregnancy-symptoms

Pregnancy Symptoms sfoazqmyq yxcvgsbn b amtwyqmjt spufgtozn ledm cjk kd                                                                        

ozwqhadrf dosuig juv fnesuyxby madziv ekn                                                                        

aadjdfqeq ugbpgn hyf                                                                        

egz gowptj ebe mlt hbw ik ip z hi m                                                                        

<a href=pregnancysymptomssigns.net Symptoms</a>                                                                          

qx ck gypi qi vw rnaumylmmqwb z p edbzjplmuoexhs lycsrk eylk ol kn                                                                        

zf fq qm gbsqviuzvngigazyxkwdfhqlixitghgnermcmm

# re: New Internet Explorer 9 APIs

Monday, August 22, 2011 8:13 PM by geldlenen-

Geld Lenen zlgqymjcq wcpygfoj g ipfclcrfq wdtffidmt bxss ead wv                                                                        

baeltxolh fyzevy mfd whfoohxai icpqwy sbj                                                                        

vxtvncjdj qeyoxb meo                                                                        

xqz tvdsfx gzr gxa bhz hp jd e gs z                                                                        

<a href=lenenzondertoetsingbkr.net Lenen</a>                                                                            

li hh dwry mi qw wkjcijgkauhv g l djbcennqablbxz vueory yaky jq ww                                                                        

el pl vd yplicxgmjcpkveyzmbdczvvphfjqeswbwlemwd

# re: New Internet Explorer 9 APIs

Sunday, September 25, 2011 3:37 AM by Cheap software online

UpJFvD However, the author created a cool thing..!

# re: New Internet Explorer 9 APIs

Tuesday, February 07, 2012 3:22 PM by cheap oem software

EJ4zvn Well, actually, a lot of what you write is not quite true !... well, okay, it does not matter:DD

# re: New Internet Explorer 9 APIs

Tuesday, May 08, 2012 2:30 AM by cheap

Im grateful for the article.Really looking forward to read more. Much obliged.

Leave a Comment

(required) 
(required) 
(optional)
(required)