A new home

I’ve made the move to WordPress!

You should be automatically redirected in 5 seconds. Please visit World Wide Code on Wordpress

Hope to see you there!

Friday, November 18, 2011

HTML5 on IE8


Many of you must have read that older browsers like IE7 and IE8 do not support HTML5.
Well, there is a workaround for this purpose. Add the following code to your HTML5 website to get it working on theses ”outdated” browsers.(Sorry WinXP users you have to use IE8 :( )
<!--[if lt IE 9]>
<script type="text/javascript" src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<style type="text/css">header,nav,section,article,aside,footer,hgroup { display: block;}</style>
<![endif]-->
Related Links

Laying out HTML with CSS Grids


Grid Layout contains features targeted at web application authors. The Grid can be used to achieve many different layouts. It excels at dividing up space for major regions of an application, or defining the relationship in terms of size, position, and layer between parts of a control built from HTML primitives.
Like tables, the Grid enables an author to align elements into columns and rows, but unlike tables, the Grid doesn’t have content structure, and thus enables a wide variety of layouts not possible with tables. For example, the children of the Grid can position themselves with Grid Lines such that they overlap and layer similar to positioned elements

Understanding MVVM in 5 Minutes


The Model-View-ViewModel (MVVM) pattern provides a flexible way to build Silverlight applications that promotes code re-use, simplifies maintenance and supports testing. The pattern consists of three different components including the Model (entities and code on the server), the View (the Silverlight screens) and the ViewModel (the glue between the Model and the View).
The essential aspects of MVVM are: The Model, the View and the ViewModel.
MVVM is defined by the separation of the Model from the View from the ViewModel. This separation pattern clearly delineates the responsibilities of each of the essential aspects of MVVM.

Asynchronous Programming in C# and Visual Basic


When your user interface is unresponsive or your server doesn’t scale, chances are you need your code to be more asynchronous. With today’s .NET Framework and language features, though, that is easier said than done.
The Microsoft Visual Studio Async CTP proposes a new language feature in C# and VB, and a new framework pattern to go with it, that will make asynchronous programming similar to – and about as straightforward as –synchronous programming.

Building Metro Style Apps with C++ and JavaScript



Raman Sharma: Building Metro Style Apps with C++ and JavaScript
Creating a Metro style app with Javascript doesn’t mean Javascript is the only language you can use. There are several reasons to leverage compiled code as well, which will be covered in this session. Learn how your Metro style app with HTML5 can directly access native code.
Raman Sharma will show you how to access your C++ Windows Runtime components from JavaScript. After this talk, you’ll understand how to combine native and script code in order to build the most compelling Metro style apps.
Download
Related Links

HTML5 Video Support in IE9 Mobile

HTML5 video is one of the most visible and easily adoptable features of the HTML5 standard. With the Mango release, Microsoft is adding support for the HTML5 <video> tag to the browser in a way that is standards-compliant, hardware-accelerated, and optimized for a mobile viewing experience. YouTube is already taking advantage of this support as they rolled out a new mobile site tailored for the Mango browser.

  • Same Implementation on Mobile and Desktop
  • Optimized Playback Experience 
  • Flash / HTML5 Video Coexistence