26
Oomph: A Microformat Toolkit Karsten Januszewski Developer Microsoft Corporation PC55

Karsten Januszewski Developer Microsoft Corporation PC55

  • View
    216

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Karsten Januszewski Developer Microsoft Corporation PC55

Oomph: A Microformat Toolkit

Karsten JanuszewskiDeveloperMicrosoft Corporation

PC55

Page 2: Karsten Januszewski Developer Microsoft Corporation PC55

The Mix Online Team

Not a product team and not just demos Building prototypes Putting them on Codeplex Featuring them on http://visitmix.com

Goal: Encourage adoption of Microsoft technologies

Page 3: Karsten Januszewski Developer Microsoft Corporation PC55

Microformats

Semantic information encoded via HTML Human readable and machine readable

About data – hCard, hCalendar, hReview, more… All the action is at http://Microformats.org Lots of traction: Yahoo, Facebook, LinkedIn, Twitter,

YouTube and many more small sites A billion hCards in the wild A hundred million hCalendars

Bill Gates during MIX06 keynote: “We need Microformats and to get people to agree on them. It is going to bootstrap exchanging data on the web…”

Page 4: Karsten Januszewski Developer Microsoft Corporation PC55

Consume:Internet Explorer

Add-in & HTML Overlay

Create:Windows LiveWriter Plug-in

Style:Set of CSS Styles

Oomph: A Microformat Toolkit

Page 5: Karsten Januszewski Developer Microsoft Corporation PC55

Oomph

Page 6: Karsten Januszewski Developer Microsoft Corporation PC55

Create:Windows LiveWriter Plug-in

Consume:Internet Explorer

Add-in & HTML Overlay

Style:Set of CSS Styles

Micro-formats

Oomph: A Microformat Toolkit

Consume:Internet Explorer

Add-in & HTML Overlay

Create:Windows LiveWriter Plug-in

Style:Set of CSS Styles

Page 7: Karsten Januszewski Developer Microsoft Corporation PC55

Consuming MicroformatsDesign goals

Provide an experience for Internet Explorer Provide an experience for other browsers No server dependencies Extensible

Page 8: Karsten Januszewski Developer Microsoft Corporation PC55

UsersInstall InternetExplorerAdd-in

All pages with Microformats“light up” inInternetExplorer

Consuming Microformats

Developers

Add two lines of Javascript to

pages with Microformats

Those pages “light up” inany browser

Page 9: Karsten Januszewski Developer Microsoft Corporation PC55

Consuming MicroformatsInternet Explorer add-in

Injects <script> tags into DOM Not on SSL pages Pull script from SSL to avoid DNS poisoning

No UI; all UI generated by Javascript Minimize C++ code!

Gotchas WebBrowserEvents --> OnDocumentLoaded vs.

HTMLDocumentEvents2 --> OnReadyStateChange

All code available on Codeplex as part of the project

Page 10: Karsten Januszewski Developer Microsoft Corporation PC55

IE Add-in C++ Code

Page 11: Karsten Januszewski Developer Microsoft Corporation PC55

Consuming Microformats HTML overlay built using JQuery

Unobtrusive Javascript Handles browser differences Now embraced by Microsoft

Part of ASP.NET Huge fan! Check out this JQuery session:

PC31 “ASP.NET and JQuery”Speaker(s): Stephen Walther

Page 12: Karsten Januszewski Developer Microsoft Corporation PC55

Consuming Microformats JQuery features used in Oomph

DOM queries LINQ for Javascript

HTML generation Like building WPF/Silverlight Tree

Animation engine Braindead easy to code

Script loading Cleverly handled in JQuery

Page 13: Karsten Januszewski Developer Microsoft Corporation PC55

Consuming Microformats Internet Explorer 8 Developer Tools

Built into browser Essential for understanding the

DOM after render pass Javascript debugging

Breakpoints, callstack, variable inspection, console

Profiler

Page 14: Karsten Januszewski Developer Microsoft Corporation PC55

Oomph, IE 8 Developer Tools & JQuery

Page 15: Karsten Januszewski Developer Microsoft Corporation PC55

Consuming MicroformatsAdditional details

Moving data around Pushing to cloud services

Bringing to the desktop vCard, iCal Exporter through

ASP.NET handler pages Geocoding using Virtual Earth

BB10 “Live Services: Deep Dive on Microsoft Virtual Earth” by Mark Brown

Page 16: Karsten Januszewski Developer Microsoft Corporation PC55

Oomph: A Microformat Toolkit

Consume:Internet Explorer

Add-in & HTML Overlay

Create:Windows LiveWriter Plug-in

Style:Set of CSS Styles

Page 17: Karsten Januszewski Developer Microsoft Corporation PC55

Users

Install Windows Live WriterPlug-in

Easily add Microformated content to your webpages

Creating & Styling Microformats

DesignersDownload and link to our CSS styles

Make your pages with Microformats look great

Page 18: Karsten Januszewski Developer Microsoft Corporation PC55

Creating Microformats Windows Live Writer Plug-in

Blogs are the new Content Management Solutiosn (CMS)

Windows Live Writer targets all blogging platforms (WordPress, MoveableType, etc.)

Plug-in Model super simple! Add WindowsLive.Writer.Api.dll Add [WriterPlugin] and

[InsertableContentSource] Override CreateContent Attach to Windows Live Writer

process to debug

Page 19: Karsten Januszewski Developer Microsoft Corporation PC55

Styling Microformats

CSS is a programming language! Incredibly powerful, simple

Page 20: Karsten Januszewski Developer Microsoft Corporation PC55

Oomph & Windows Live Writer

Page 21: Karsten Januszewski Developer Microsoft Corporation PC55

Oomph Extensibility

Oomph only tackled two Microformats hCard & hCalendar

Other Microformats out there New ones being developed all the time

Oomph is extensible Add your own Microformats

Page 22: Karsten Januszewski Developer Microsoft Corporation PC55

Oomph Extensibility: hAudio

Page 23: Karsten Januszewski Developer Microsoft Corporation PC55

Call To Action

Download from Codeplex http://codeplex.com/oomph

Contribute to Codeplex Watch for future projects on

http://visitmix.com Check us out at MIX09!

Page 24: Karsten Januszewski Developer Microsoft Corporation PC55

Evals & Recordings

Please fill

out your

evaluation for

this session at:

This session will be available as a recording at:

www.microsoftpdc.com

Page 25: Karsten Januszewski Developer Microsoft Corporation PC55

Please use the microphones provided

Q&A

Page 26: Karsten Januszewski Developer Microsoft Corporation PC55

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market

conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.