XML
  Home arrow XML arrow An Introduction to XUL Part 4
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

An Introduction to XUL Part 4
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2005-06-13

    Table of Contents:
  • An Introduction to XUL Part 4
  • Using the RDF/XML Syntax
  • Creating the Wizard
  • Adding to the installed-chrome.txt file

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Save your reputation with your customers. Learn how you can have embedding success with Advantage Database Server (ADS).

    An Introduction to XUL Part 4
    (Page 1 of 4 )

    Learn about XUL, a subset of XML used to describe user interfaces, that helps you to make rich user interfaces with nothing more complicated than a text editor. In the fourth part of this series you will learn about dialog boxes and wizards.

    Aside from some other, more advanced elements which will be discussed later on, the elements looked at so far are pretty much all of the elements that actually draw the various things that make up an interface on the screen. There are, however, a couple of advanced elements that not only render objects on the screen, but also include built in functionality. These elements are used in place of the window element and create different types of window. 

    They are of course, dialog boxes and wizards. Using these alternative windows is not as simple as the other elements we have looked at so far; simply creating them and executing them via the command line will not make them work correctly. In order to use these advanced elements, you will need to create an RDF file that describes them and register them with Mozilla.

    RDF, as mentioned previously, stands for Resource Description Framework, and is used, of course, to describe resources. Those resources are defined using URIs and may be Web locations or file system locations. The basic building block of RDF is the triple, a three part description comprising an object, a subject and the relationship between them. The concept of triples has been around for some time; if you’ve ever used the <meta> tag in an HTML document you’ve authored to add your name as the author or creator of the document, you’ve used a triple. You have the object, which is the HTML document; you have the subject, namely yourself; and you have a piece of information (called a predicate) that describes your relationship to the Web page –- the meta name value that says author (or creator).  Graphs can be displayed visually using an arc-node diagram with the predicate pointing towards the object:

     
    This very basic arc-node graph example contains two literals or actual values, something that should never happen in RDF; I have drawn it in this way purely as an example. Instead, the object or subject (or both) should be described as a resource by using a URI:


    To show that the object is a literal, I have placed its value into a rectangular rather than oval container. It is worth noting at this point that predicates can also be expressed as resources using a URI.  Almost anything can be described using RDF, provided it is something that has some kind of relationship with something else and can be expressed via a unique URI. This is just the very basics of RDF, a brief overview if you like, which I have included simply because you’ll need an RDF file to produce working wizards and dialogue boxes. There are some excellent resources out there if you want to learn more. A good place to start is the W3C site (www.w3.org), or the Mozilla site (www.mozilla.org).

    More XML Articles
    More By Dan Wellman


       · I have a question about wizard.Everything works fine if you just move through the...
       · Hi,I'm not sure that the wizard has this functionality, maybe using a set of...
     

       

    XML ARTICLES

    - How to Set Up Podcasting and Vodcasting
    - Creating an RSS Reader Application
    - Building an RSS File
    - An Introduction to XUL Part 6
    - An Introduction to XUL Part 5
    - An Introduction to XUL Part 4
    - An Introduction to XUL Part 3
    - An Introduction to XUL Part 2
    - An Introduction to XUL Part 1
    - XML Matters: Practical XML Data Design and M...
    - Practical XML Data Design and Manipulation f...
    - SimpleXML
    - XForms Basics, Part 3
    - XForms Basics, Part 2
    - XForms Basics




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway