XML
  Home arrow XML arrow Page 3 - Back to XUL: Completing the JavaScript Log...
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  
Mobile Linux 
App Generation ROI 
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: Completing the JavaScript Logic
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-02-13

    Table of Contents:
  • Back to XUL: Completing the JavaScript Logic
  • Defining a Function
  • The Help Menu
  • The About Window
  • Making the Toolbar Work
  • Finishing up the Functions

  • 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: Completing the JavaScript Logic - The Help Menu


    (Page 3 of 6 )

    Now that the Edit menu is complete, we can get to work on the help menu.   Creating a fully-fledged help system is beyond the scope of this article; however, there are several ways in which a competent help system could be implemented with considerable ease.  Perhaps the simplest way to do this would be to set up a standard HTML page (or series of pages) that listed the functions of the editor and perhaps an installation guide. In the same way that we opened the template files earlier, we could just load the HTML help file into the document window. 

    This method however, does have its drawbacks; any document that is open in the text editor is replaced, and the HTML document is editable.  A better way is to simply call the window.open method and open the help document in the main Mozilla browser:

    function launchHelp() {

      var sURL = "help.html";
      var sURLName = "helpwin";
      var helpwin = window.open(sURL, sURLName);

    }

    Add the oncommand event handler to the main XUL file and then test it out.  Click on Help à Help Contents and watch in awe as Mozilla fires up and displays your help system.  The example help.html file included with this article is simply to demonstrate this effect and has, in fact, no help documentation in it.  You could really go to town with this, though, and add as part of the help system a guide to XUL itself; element and component descriptions; examples; and perhaps links to some of the better XUL and Mozilla Developer sites.  Just do what feels right.

    More XML Articles
    More By Dan Wellman


       · Hi,This article follows on neatly from the last and shows you the code needed to...
     

    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 3 hosted by Hostway
    Stay green...Green IT