List of Listings

 

Chapter 1. HTML5 and .NET

Listing 1.1. Microdata tags describing content

Listing 1.2. The Index.cshtml markup

Listing 1.3. The myApp object and its functions

Listing 1.4. The Ajax request that will call the MVC controller

Listing 1.5. processResult is called automatically when the Ajax call returns successfully

Listing 1.6. Adding elements to the page using jQuery and string-based HTML

Listing 1.7. GetMessage receives and sends data using client Ajax calls

Chapter 2. A markup primer: classic HTML, semantic HTML, and CSS

Listing 2.1. Sample semantic page structure

Listing 2.2. Simple markup to enhance data

Listing 2.3. Basic page layout tags

Listing 2.4. A table used to display tabular data

Listing 2.5. A simple form and the resulting URL value when it’s posted

Listing 2.6. Sample semantic page structure

Listing 2.7. Various type, descendent, id, and class selector combinations

Listing 2.8. A simple box model test creating two divs and a style that applies to both

Chapter 3. Audio and video controls

Listing 3.1. Controls for audio and video elements

Listing 3.2. The basic JavaScript structure of the main.js library

Listing 3.3. init function checks and initializes video and audio elements

Listing 3.4. The initMedia function assigning properties for a new object

Listing 3.5. Binding events to the media object in the initMedia function

Listing 3.6. init function binding UI events to the media object created in initMedia