... "The Chrome Registry and Locale." 11 .2. 2. External and Inline Entities You may ask, how are the entities accessed? You can associate the DTD with your XUL file in two ways. The first is ... directory within your chrome structure is good practice. Consider the main Editor window in Mozilla. Its declaration in Example 11- 2 is flexible enough to associate multiple DTD files...
Ngày tải lên: 21/01/2014, 06:20
... of getting a string from a bundle: var appBundle = document.getElementById("bundle_app"); return appBundle.stringBundle.GetStringFromName("chapter11 "); 11.3 .2. 2 .2. ... inside. Then each element is appended to the main container that lives in the XUL file. 11.4 .2. 2. Method 2: HTML <br> tag For this example, create the XUL placeholder similar to the e...
Ngày tải lên: 21/01/2014, 06:20
Tài liệu Creating Applications with Mozilla-Chapter 2. Getting Started- P1 doc
... the XUL elements with xul: to distinguish them from markup in other namespaces, as with the xul:box and xul:button shown in Example 2- 3. 2. 2.4. Basic XUL Layout Example 2- 1 features some ... environment, and creates a new window in the window hierarchy. Chapter 2. Getting Started- P1 To help you start creating applications as quickly as possible, this chapter prese...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Creating Applications with Mozilla-Chapter 2. Getting Started- P2 pptx
... Chapter 2. Getting Started- P2 2. 3. Making Mozilla Work for You The second "Hello World" sample, shown in Example 2- 4 , adds some important application ... chapter in the section Section 2. 5 . Figure 2- 2. The second Hello xFly example loaded in the browser 2. 3.1. Importing Resources from Mozilla The code in Example 2- 4 uses scripts and styles ... dialogOv...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Creating Applications with Mozilla-Chapter 2. Getting Started- P3 docx
... tree structure in Example 2- 14 . Example 2- 14. Tree structure of a completed sample xFly package chrome/ xfly/ content/ Chapter 2. Getting Started- P3 2. 5. Creating a Package The previous ... many. With a little imagination, you can extend the content available to you infinitely by adding your own styling and behavior with XBL. 2. 5 .2. 2. Chrome appearance Loading...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc
... features of the new JavaScript 1.5,[1] which is based on the ECMA -26 2 standard. [2] JavaScript 2. 0, due sometime late in 20 02, promises to be an even bigger promotion of the language. Three ... http://developer.netscape.com/docs/manuals/index.html?content=javascript.html. [2] The third edition of the EMCA -26 2 EMCAScript Language Specification can be found at http://www.ecma...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt
... Chapter 5. Scripting Mozilla- P2 Figure 5 -2. Toggling the state of menu items in xFly The following section explains more about ... label="http://www.oreilly.com" id="t2" /> </treerow> </treeitem> </treechildren> </tree> </window> 5.3 .2. 2. Capturing events Event capturing is ... 5.3. Adding Scripts to the UI Once you a...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx
... manipulated in this way. 5.3.4. Creating Elements Dynamically Using the createElement method in XUL lets you accomplish things similar to document.write in HTML, with which you can create new ... xmlns="http://www.mozilla.org/keymaster/gatekeeper/ there.is.only.xul" title="test" style=" min-width : 20 0px; min-height: 20 0px;"> <script&g...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx
... for xpcshell, type this: $ ./run-mozilla.sh ./xpcshell help JavaScript-C 1.5 pre-release 4a 20 02- 03 -21 usage: xpcshell [-s] [-w] [-W] [-v version] [-f scriptfile] [scriptfile] [scriptarg ] The ... } function getMozDir( ) { md = du.getMozHomeDir( ); textfield2 = document.getElementById("tf2"); textfield2.setAttribute("value", md); } </script> <b...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx
... Mozilla-based applications. Example 6-4. manifest.rdf describing the XMLTerm extension <?xml version="1.0"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/ 02/ 22- rdf-syntax-ns#" ... installed 6 .2. 2 .2. Registering packages as you develop them (installed- chrome.txt) The file installed-chrome.txt is a convenience for developers who want to create and test...
Ngày tải lên: 14/12/2013, 12:15