Category:Example code: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
(→XUL) |
m (→Other: [http://developer.mozilla.org/en/docs/Working_with_windows_in_chrome_code Working with windows in chrome code]) |
||
Line 43: | Line 43: | ||
===Other=== | ===Other=== | ||
*[http://developer.mozilla.org/en/docs/Working_with_windows_in_chrome_code Working with windows in chrome code] article on Devmo. Discusses various development tasks involving working with windows. | |||
*[[Dev : Extensions : Example Code : Opening a new browser window|Opening a new browser window]] | *[[Dev : Extensions : Example Code : Opening a new browser window|Opening a new browser window]] | ||
*[[Inserting text at cursor]] | *[[Inserting text at cursor]] |
Revision as of 11:41, 9 August 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).
XUL
- Creating toolbar buttons
- Adding items to menus using overlays (talks about browser's context menu too)
- Creating dialog windows with XUL
- Dynamically modifying XUL-based user interface on Devmo. Talks about using DOM API to add, move, and delete widgets from UI at runtime.
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)
- nsIWindowMediator - enumerating existing windows.
- Prompt service (priviledged version of alert(), confirm(), prompt() plus their extended versions): some examples, forum thread.
- Working with protocol handlers:
- Dev : Extending the Chrome Protocol
- Adding a New Protocol to Mozilla by Doron Rosenberg.
- 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
- SVG
Other
- Working with windows in chrome code article on Devmo. Discusses various development tasks involving working with windows.
- Opening a new browser window
- Inserting text at cursor
- Creating a XUL mailto: link
- Automatically deleting files when the user uninstalls your extension
- Adding Drag and Drop to Statusbarpanel
- Sorting Trees
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.