XML
  Home arrow XML arrow Page 2 - Back to XUL: Introduction and Preparation
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 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

Back to XUL: Introduction and Preparation
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2006-01-16

    Table of Contents:
  • Back to XUL: Introduction and Preparation
  • Creating applications with XUL
  • Setting up your system for running XUL applications
  • More setup information

  • 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


    Back to XUL: Introduction and Preparation - Creating applications with XUL


    (Page 2 of 4 )

    XUL is just an XML variant used to describe interfaces, you may be thinking, so how can you create entire applications with it?  Well, the truth is, you can’t.  You need something else to glue the various elements together and turn them into functioning entities that work together to actually do things.

    XUL provides an excellent introduction to application programming; especially for those that have a good understanding of web design, because it gives you familiar tools to work with that can help to teach you some of the finer points of what is required to make a working application.  The language that is used to create the behind the scenes logic that makes the program work is the web programmer’s old friend JavaScript. 

    Although, that in itself is not entirely true either.  While JavaScript can handle many of the more basic operations used when interface elements are interacted with, there are some things for which it is simply not powerful enough; you can’t use it, for example, to launch an operating system specific ‘open file’ dialog box.  JavaScript is still the gateway to these higher functions though, and can be used to write XPCOM components that interact with the interfaces and components used in Mozilla.  XPCOM stands for Cross Platform Component Object Model, but while XPCOM, like XUL itself, is platform independent, expect very little support for it outside of Mozilla; MSIE for example falls over when trying to open XUL applications, having neither the interfaces nor the chrome architecture that are required. 

    The chrome architecture provides a method for granting special permissions to XUL files, such as permission to open or write to files, among other things.  XUL files that have these permissions are accessed using a chrome URL, much in the same way as a web page is accessed via an HTTP URL.  Chrome includes all interface, presentation and locale files present and registered for you with Mozilla; it is a kind of catch-all term for these so when you add, say, a new toolbar to Mozilla, you are adding chrome. 

    Like a browser that interprets HTML elements and displays them on-screen, XUL elements are rendered according to the Gecko layout engine, which controls, in part, how the components of the Mozilla browser and the files it displays appear.

    All of these things and more combine with XUL to form fully functional applications that can run either within Mozilla or as separate applications in their own right (although components of Mozilla will be used when doing this).  During the course of these articles we will look at these in more detail.

    Make no mistake however; the combination of XUL, JavaScript and XPCOM is not true application code, it’s not C++ or anything.  It was designed to make browsers and other network applications, and it does this extremely well, but don’t expect to see a XUL version of Photoshop in the near future.

    More XML Articles
    More By Dan Wellman


       · Hey everybody,Hope you have as much fun as I did creating this fully functional...
     

    XML ARTICLES

    - Datatypes and More in RELAX NG
    - Providing Options in RELAX NG
    - An Introduction to RELAX NG
    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE
    - UI Design with Java and XML Toolkits
    - Displaying ADO Retrieved Data with XML Islan...
    - Widget Walkthrough
    - Introduction to Widgets
    - The Why and How of XML Data Islands






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT