MozillaZine

Dev : Extensions : Example Code

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 23:40, 5 March 2005
Asqueella (Talk | contribs)
(last attempt)
<-- Previous diff
Revision as of 23:41, 5 March 2005
Asqueella (Talk | contribs)
(revert)
Next diff -->
Line 1: Line 1:
-#REDIRECT [[:Category:Example_code]]+{{extdev}}
 + 
 +==XUL==
 +*[[Creating toolbar buttons]]
 +*[[Dev : Extensions : Example Code : Adding items to menus | Adding items to menus with overlays]] (talks about browser's context menu too)
 +*[[Creating dialogs | Creating dialog windows with XUL]]
 + 
 +==Javascript==
 +===Commonly used techniques===
 +* [[Dev : Using preferences|Using preferences]]. For the basics, see also the [http://www.xulplanet.com/tutorials/xulqa/q_prefs.html article] on [http://xulplanet.com/ XulPlanet].
 +*How to log debug information to [[JavaScript Console]].
 + 
 +===XPCOM===
 +*[[Dev : Extensions : Example Code : File IO | Performing file IO]]
 +*[[Dev : Extensions : Example Code : Using observers | Using observers]] for cross-window notifications
 +*[[Dev : Extensions : Example Code : Run programs | Running other applications]]
 +*[[Dev : nsIFilePicker | Using file choosers]] (Open, Save, Select Directory dialogs)
 + 
 +===<tabbrowser> related===
 +*[[Dev : Extensions : Example Code : Progress Listeners | Using progress listeners]]
 +*[[Dev : Extensions : Example Code : On Tab Load | Executing your code each time a page loads]]
 +*[[Dev : Extensions : Example Code : Enumerating tabbrowser tabs|Enumerating tabbrowser tabs]]
 + 
 +===Other===
 +*[[Dev : Extensions : Example Code : Opening a new browser window|Opening a new browser window]]
 +*[[Dev : Extensions : Example Code : Using XMLHttpRequest | Using XMLHttpRequest]]
 +*[[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]]
 + 
 +===Techniques===
 +* [[Differential Inheritance]] in JavaScript using <tt>__proto__</tt>
 + 
 +[[Category:Development|Example code]] [[Category:Example code]]

Revision as of 23:41, 5 March 2005

This page is part of the extension development documentation project.

Ask your questions in MozillaZine Forums. Also try browsing example code.

Note: development documentation is in process of being moved to Mozilla Development Center (MDC).

Contents

XUL

Javascript

Commonly used techniques

XPCOM

<tabbrowser> related

Other

Techniques