Difference between revisions of "Category:Example code"
From MozillaZine Knowledge Base
(added "Reusing tabs for the same URL") |
m (revert) |
||
Line 28: | Line 28: | ||
===XML Technologies in Mozilla=== | ===XML Technologies in Mozilla=== | ||
− | *[[ | + | *[[How to Create a DOM tree]] |
*[[XMLHttpRequest|Using XMLHttpRequest]] | *[[XMLHttpRequest|Using XMLHttpRequest]] | ||
*[[Parsing and serializing XML]] | *[[Parsing and serializing XML]] |
Revision as of 17:01, 29 March 2005
- Up to Development
Articles in this category demonstrate the code to do certain things in Mozilla-based products (at this moment, mostly for use in extensions).
Contents
XUL
- Creating toolbar buttons
- Adding items to menus using overlays (talks about browser's context menu too)
- Creating dialog windows with XUL
JavaScript
Commonly used techniques
- Using preferences. For the basics, see also the article on XulPlanet.
- How to log debug information to JavaScript Console.
- JavaScript Preferences Class
XPCOM
- Performing file IO
- Using observers for cross-window notifications
- Running applications
- Using file choosers (Open, Save, Select Directory dialogs)
- Using
nsIPromptService
(priviledged version of alert(), confirm(), prompt() plus their extended versions): some examples, forum thread.
- Using progress listeners
- Executing your code each time a page loads
- Enumerating tabbrowser tabs
- Reusing tabs for the same URL
XML Technologies in Mozilla
- How to Create a DOM tree
- Using XMLHttpRequest
- Parsing and serializing XML
- Using XPath
- XSL Transforms
- XLink
- XPointer
Other
Techniques
- Differential inheritance in JavaScript using
__proto__
- Increasing security with XPCNativeWrapper
The alphabetical list of all articles and subcategories in this category follows.
Pages in category "Example code"
The following 8 pages are in this category, out of 8 total.