Category:Example code: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
(added using XPath to query a DOM object) |
(Changed title of XPath document) |
||
Line 29: | Line 29: | ||
*[[Dev : Extensions : Example Code : Inserting text at cursor | Inserting text at cursor]] | *[[Dev : Extensions : Example Code : Inserting text at cursor | Inserting text at cursor]] | ||
*[[Dev : Extensions : Example Code : Creating a XUL mailto: link | Creating a XUL mailto: link]] | *[[Dev : Extensions : Example Code : Creating a XUL mailto: link | Creating a XUL mailto: link]] | ||
*[[Dev : Extensions : Example Code : Using XPath to query a DOM object | | *[[Dev : Extensions : Example Code : Using XPath to query a DOM object | XPath Expressions]] | ||
===Techniques=== | ===Techniques=== |
Revision as of 07:14, 8 March 2005
- Up to Category:Development
Articles in this category demonstrate the code to do certain things in Mozilla-based products (at this moment, mostly for use in extensions).
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.
XPCOM
- Performing file IO
- Using observers for cross-window notifications
- Running applications
- Using file choosers (Open, Save, Select Directory dialogs)
Other
- Opening a new browser window
- Using XMLHttpRequest
- Inserting text at cursor
- Creating a XUL mailto: link
- XPath Expressions
Techniques
- Differential inheritance in JavaScript using
__proto__
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.