... Chapter 5. Scripting Mozilla- P1 In Mozilla, scripting plays important roles in the XPFE. Whether developers refer to script ... all boxes in a document. The array is zero-based, so the elements start at 0 and end with the last occurrence of the element in the document. If you have three boxes in a document and want ... the Document Object Model, you can use a similar script...
Ngày tải lên: 14/12/2013, 12:15
... Chapter 5. Scripting Mozilla- P2 Figure 5- 2. Toggling the state of menu items in xFly The following section explains ... JavaScript that should be executed when that event is triggered. Example 5- 5 shows some basic button activation events. Example 5- 5. Basic event handler attributes <window onload="dump('this ... comes in handy. Example 5- 8 demonstrates...
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
... 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 of this document are in the ... 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 cr...
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
... Chapter 5. Scripting Mozilla- P4 Figure 5- 4. How XPConnect fits into the application model In Mozilla, XPConnect is ... a lot easier by letting you focus on creating your Mozilla application without having to implement XPCOM nsIFile objects manually from your script. 5. 5.1.4. Using the FileUtils class To create ... only once to use its members and handle local files robustl...
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
... Packaging and Installing Applications- P1 The previous chapters covered the basic parts of building an application. Now that you've seen how to create an application with XUL, CSS, and JavaScript ... target within the files, but the manifest that accompanies the overlay in your package tells Mozilla which overlays are associated with which XUL files. The part of the manifest...
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
... Example 6- 15 shows the output in install.log after a single successful installation. Example 6- 15. install.log http://books.mozdev.org/examples/xfly.xpi 06/28/2002 19:12 :59 Install ... When the InstallTrigger object gets a JAR with a package manifest it can read and a package type that doesn't break the security boundary for applications (i.e., a new theme, a ne...
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
... 6-6 . Figure 6-6. Windows taskbar with Mozilla icon 6 .5. 1.2. Unix X Windows uses the common X Pixmap (XPM) format for icons. XPM files are C source code files, with each pixmap defined as a ... mozicon50.xpm. Many utilities, such as the GIMP, PaintShopPro, and Xview, can transform images from other common formats. 6 .5. 1.3. Macintosh The Macintosh BNDL resource (OS icons for...
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
... section Section 7 .5 , later in this chapter. 7.1.2. An XBL Document XBL documents are files saved with an .xml filename extension. Most bindings implement XUL content and behavior with script, ... appear on its own in a binding. Binding document An XBL file with an .xml extension that contains one or more bindings. Bound document A XUL (or HTML) document that has one or more...
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
... Handlers in XBL mimic regular document events like onclick and onmousedown, and provide a means for trapping them within your binding and carrying out tasks associated with them. <handlers> ... represented by the <method> tag and encapsulated within the <implementation> element. They usually provide a binding object with a specific function like copying and saving...
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- P3 docx
... 7.4.1.1. DocumentXBL methods The DocumentXBL interface gains access to and interacts with an XBL document. The methods of this interface are as follows: loadBindingDocument(URL) XBL documents ... bound document uses a binding from it. You can get around this problem and load the binding documents synchronously by using this method. It returns an XBL document for use within a bound d...
Ngày tải lên: 14/12/2013, 12:15