Changes

Jump to: navigation, search

How to make a Hello World application using XULRunner

100 bytes removed, 16:56, 13 December 2006
Conclusion
== Introduction ==
This tutorial is designed for people who have never touched XUL or XULRunner before and allow them to create a Hello World application on XULRunner. This tutorial will guide users in such a way that it will show users them how to create their firstapplication first application without knowing the being overwhelmed with details.
This guide will also help guide start the new pioneers of XULRunner understand XULRunner this technology and platform enough so that they are ready to take on more begin more complicated applications.
== Getting XULRunner package ==
/chrome
/content
main.xul
chrome.manifest
/defaults
/preferences
prefs.js
application.ini
For more information about this section please visit the following link: [[File/Folder Structure]]
== Setting up the application.ini file ==
Create a file called '''application.ini''' in the xulapp/ directory .
The following is a sample '''application.ini''' file.
== Setting up the chrome.manifest file ==
Create a file called '''chrome.manifest''' in the xulapp/chrome/ directory.
For this example, the chrome.manifest file contains the following information:
== Setting up the prefs.js file ==
Create a file called '''prefs.js''' in the xulapp/defaults/preferences directory.
The following was used for this simple application.
The '''pref''' function needs to be passed in two arguementsarguments. In this scenario, this document provided an explaination on The following bullets will illustrate what those the two arguements areargument passed to the function pref() means:
:*'''toolkit.defaultChromeURI''' is a preferences which allows a simple XULRunner-based application to open a new window
:*'''chrome://myapp/content/main.xul''' is the location of the main XUL file.
For the simplicity of this application, we're going to create a simple XUL window that says hello world.
Create a file called '''main.xul''' in the xulapp/content directory.
Open the file, "main.xul". This file is located in the following location: /myapp /content main.xul Write the following code into the xul file. This code will popup a XUL window with the words "hello worldHello World"
<pre>
== Conclusion ==
Creating a Hello World application on XULRunner isn't is not a hard task. Writing this application does not require a heavy knowledge of XULRunner but if developers choose would like to write their own program which is more complex programs , they should have a better understanding of XULRunner.  
To get started, please take some time to learn about XULRunner. The following link provides a simple yet intuitive guide on XULRunner, [[XULRunner_Guide_Outline | XULRunner Guide]].
1
edit

Navigation menu