Dev : Extensions : Example Code

From MozillaZine Knowledge Base
Revision as of 02:15, 9 December 2004 by Asqueella (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

  • 1 XUL
  • 2 Javascript
    • 2.1 Commonly used techniques
    • 2.2 XPCOM
    • 2.3 <browser> related
    • 2.4 Other
    • 2.5 Techniques

XUL

  • Adding items to menus with overlays (talks about browser's context menu too)
  • Dialogs in Mozilla

Javascript

Commonly used techniques

  • XulPlanet has an article on preferences
  • Printing debug information to JavaScript Console

XPCOM

  • File IO
  • Using observers for cross-window notifications
  • Run other applications
  • displaying a file picker (Open, Save, Select Directory dialogs)

<browser> related

  • Using progress listeners
  • Executing your code each time a page loads
  • Enumerating tabbrowser tabs
  • Opening a new browser window

Other

  • Inserting text at cursor
  • Using XMLHttpRequest

Techniques

  • Differential Inheritance in JavaScript using __proto__
Retrieved from "http://kb.mozillazine.org/index.php?title=Dev_:_Extensions_:_Example_Code&oldid=7988"

Navigation menu

Views

  • Page
  • Discussion
  • View source
  • History

Personal tools

  • Log in

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

 

Tools

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information
Powered by MediaWiki
  • Privacy policy
  • About MozillaZine Knowledge Base
  • Disclaimers