... Chapter 1. Mozilla as Platform The Mozilla project was started in March 19 98 with the goal of developing the successor to Netscape's Communicator 4.x browser suite. Today Mozilla is ... chapter and is helpful in explaining how the Mozilla project has turned into a platform for creating cross -platform applications. 1. 1. Visualizing Mozilla& apos;s Front End...
Ngày tải lên: 26/01/2014, 07:20
... development that Mozilla, as a development platform, would be inconceivable without it. The core scripting language used in Mozilla is JavaScript. Although it has had a reputation as an unsophisticated ... JavaScript 1. 5, [1] which is based on the ECMA-262 standard.[2] JavaScript 2.0, due sometime late in 2002, promises to be an even bigger promotion of the language. Three...
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
... type="application/x-javascript" A large basic set of event handler attributes is available for use on XUL elements (and HTML elements). Appendix C has a full listing of these events along with explanations. ... necessary. 5.3.2 .1. 1. Trapping events When an event is raised, it is typically handled by any node interested in it as it continues its way up the DOM hierarchy...
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
... scope often leads to problems when beginning Mozilla applications. 5.3.5 .1. Scope in Mozilla The general rule is that all scripts pulled in by the base XUL document and scripts included in overlays ... creates a new JavaScript object, obj, and assigns the value of an empty string to that object's res property. The object is then passed by reference to the new window as the l...
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
... include("chrome://jslib/content/zip/zip.js"); 5.5 .1. 1. Installing JSLib To use the JavaScript libraries, install the JSLib package in Mozilla. The package is available as a tarball, a zip file, or as CVS sources. The easiest way ... such as file.js, dir.js, and fileUtils.js. Table 5 -1 describes the basic classes in the JSLib package's I/O module and describes h...
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
... package inside the XPI has a manifest that is used to register the new Mozilla- based software with the Mozilla chrome registry. When a XPI contains a Mozilla- based package such as the xFly sample ... installation, as is typically done, and the second describes how to use a special file to register your work with Mozilla as you develop it so that you can view your work a...
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-P2 ppt
... and reusable, as seen in the longer install script in Example 6 -11 . Example 6 -11 . A more complicated install script var vi = " ;10 .10 .10 .10 "; var xpiSrc = "adddir1"; initInstall("addFileNoVers1", ... getPlatform( ) { var platformStr; var platformNode; if(&apos ;platform& apos; in Install) { platformStr = new String(Install .platform) ;...
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-P3 pdf
... same name as the Mozilla icon (mozilla. ico) and just drop it into the tree, replacing the existing one shown in Figure 6-6 . Figure 6-6. Windows taskbar with Mozilla icon 6.5 .1. 2. Unix ... leaning toward the necessary in the case of Mozilla (Figure 6-7 shows Mozilla& apos;s splash screen). Figure 6-7. Mozilla& apos;s splash screen Because Mozilla is a large applica...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx
... Chapter 7. Extending the UI with XBL- P1 You now know that XUL is the basic tool set for creating your application interface, but even it has limitations. It is just a finite set ... building and maintaining your Mozilla application much easier. Appendix C provides a reference for the XBL element set, with which new elements can be created. 7 .1. What Is XBL? XBL is an XML ......
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx
... name="aString1"/> <parameter name="aString2"/> <body> <![CDATA[ if (!aString1 && aString2) return; return dump(aString1+" "+aString2+"\n"); ... escape JavaScript that may otherwise cause conflicts with the XML parser. Having characters like quotes and slashes in XML is problematic when they are not escaped. Usin...
Ngày tải lên: 14/12/2013, 12:15