This is your guide to building Internet applications and user interfaces with the Mozilla component framework, which is best known for the Firefox web browser and Thunderbird email client. Programming Firefox demonstrates how to use the XML User Interface Language (XUL) with open source tools in the framework's Cross-Platform Component (XPCOM) library to develop a variety of projects, such as commercial web applications and Firefox extensions.\ This book serves as both a programmer's...
This is the essential guide to building user interfaces and rich internet applications for the Firefox Web browser, the Thunderbird e-mail client, and independent projects using free development tools from the Mozilla Foundation.
Preface ixFirefox and Friends 1Mozilla to Firefox and Thunderbird 1XML Technologies 3At the Top of It All: The DOM 6Mixing Document Types 7Getting Started 7XUL Basics 12File Structure 12XUL Widgets 15Introducing Input Controls 24More Complex Containers 28Managing the Display Space 35Content Display Panels 38Miscellaneous Widgets 39Helper Features 40Mozilla Style Declarations 42Summary 44Coding and Testing for the Real World 45Defining a Target Application 45Adding Logic 47Simple Authentication Script 59When Things Don't Work 68Summary 73Configuring for Chrome and a Server 76Chrome Overview 76Running as a Local Installation 78XUL-to-Server Communications 80Serving XUL Files 100Summary 107Multiframe XUL 109Dividing the Display Area 109Editing Documents 113Adding Dialog Windows 138Summary 152Trees, Templates, and Datasources 154Trees 154Modifying Datasources 188Summary 220DOM Manipulation and Input/Output 221A Design Review 221Browser Elements 222Moving Text Between Frames 227Exporting Note Document Content 231Adding Interactivity to DOM Elements 239Summary 263Graphics 264A Sample Graphing Project 265XHTML Review 266SVG Overview 267Data-to-Graphics Transformation 272HTML CanvasSummary 299Extending the Interface 301Overlay Files 301Adding Logic 308XBL 312HTTP Request Widget 321Summary 333XForms 334Basic XForms Structure 335An Example Transfer to the Server 336XForms Validation Features 341XForms Events and Actions 359User Interaction and Dynamic Presentation 363What to Do When Things Go Wrong 373Summary 373Installation and Deployment 374Deploying Standalone Applications 375Deploying Themes and Skins 382Adding Locales 386Deploying Extensions 391Deploying the Extension 395What to Do When Things Go Wrong 400Summary 403XUL Widget Reference 405Browser Package Files 405Developer Reference 410Glossary: XUL Widgets: Attributes, Properties, and Methods 463Index 479