O'Reilly logo

Creating Vista Gadgets: Using HTML, CSS and JavaScript with Examples in RSS, Ajax, ActiveX (COM) and Silverlight by Rajesh Lal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. The Architecture

"The noblest pleasure is the joy of understanding."

—Leonardo da Vinci

IN THIS CHAPTER

Gadgets Overview

A gadget is a set of HTML, XML, JavaScript, CSS, and image files packed into one file. A gadget package with an extension .gadget is actually a Zip file that contains these files to run the gadget. Figure 2.1 shows a common layout for a simple gadget.

Normally a gadget contains these folders and files:

• en-US folder

main.html

Settings.html

Flyout.html

Main.js

Gadget.xml (with proper mapping)

• Images folder

Dragicon.png

Logo.png

Icon.png

FIGURE 2.1. A gadget contains a few HTML, JavaScript, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required