Articles tagged: Code snippets
Found 39 documents
- Archive/Add-ons/Interaction_between_privileged_and_non-privileged_pages An easy way to send data from a web page to an extension is by using custom DOM events. In your ...
- Archive/Add-ons/Tabbed_browser Here you should find a set of useful code snippets to help you work with Firefox's tabbed ...
- Mozilla/Add-ons/Code_snippets This is a quick list of useful code snippets (small code samples) available for developers of ...
- Mozilla/Add-ons/Code_snippets/Alerts_and_Notifications non-modal notification and further interaction with users
- Mozilla/Add-ons/Code_snippets/Autocomplete First, declare a panel with the "autocomplete" type, like so:
- Mozilla/Add-ons/Code_snippets/Bookmarks Firefox 3 provides a reworked set of API for working with History and Bookmarks. The ...
- Mozilla/Add-ons/Code_snippets/Boxes Make the BOX style="display: block" and the wrapping behavior will occur when the box is resized:
- Mozilla/Add-ons/Code_snippets/Canvas For general information about using canvas see the canvas topic page.
- Mozilla/Add-ons/Code_snippets/Cookies Cookies for a given host, represented as objects, can be enumerated as such:
- Mozilla/Add-ons/Code_snippets/Dialogs_and_Prompts This page has some code snippets used to display and process dialog boxes. See Working with ...
- Mozilla/Add-ons/Code_snippets/Downloading_Files To download a file, create an instance of nsIWebBrowserPersist and call its ...
- Mozilla/Add-ons/Code_snippets/Drag_&_Drop It's possible to setup drag and drop event s to handle dropping files from external applications ...
- Mozilla/Add-ons/Code_snippets/Embedding_SVG SVG is an XML based makeup language and can be embedded into other markup languages, like XHTML ...
- Mozilla/Add-ons/Code_snippets/File_I_O This article describes local file input/output in chrome JavaScript.
- Mozilla/Add-ons/Code_snippets/Finding_Window_Handles When working on Windows platforms, many APIs and frameworks require a window handle (HWND type). ...
- Mozilla/Add-ons/Code_snippets/Forms Here are some form related code snippets.
- Mozilla/Add-ons/Code_snippets/getAttributeNS As some browsers do not support getAttributeNS, the following might be used to work on them as ...
- Mozilla/Add-ons/Code_snippets/HTML_in_XUL_for_rich_tooltips This example demonstrates the dynamic injection of HTML into a XUL element. Specifically, we ...
- Mozilla/Add-ons/Code_snippets/HTML_to_DOM Although you can now natively parse HTML using DOMParser and XMLHttpRequest, this is a new ...
- Mozilla/Add-ons/Code_snippets/JavaScript_Debugger_Service In Firefox versions prior to Gecko 33 (Firefox 33 / Thunderbird 33 / SeaMonkey 2.30), the ...
- Mozilla/Add-ons/Code_snippets/JS_XPCOM Here are a few useful snippets of code for dealing with XPCOM components in JavaScript.
- Mozilla/Add-ons/Code_snippets/Label_and_description Under normal conditions, a description will not break long-running text and the text may be ...
- Mozilla/Add-ons/Code_snippets/Miscellaneous This page contains small, self-explanatory code snippets.
- Mozilla/Add-ons/Code_snippets/Page_Loading
- Mozilla/Add-ons/Code_snippets/Preferences This article provides examples for extension developers that wish to use the Mozilla preferences ...
- Mozilla/Add-ons/Code_snippets/Running_applications This page describes how to run other programs from your chrome JavaScript code, using Mozilla ...
- Mozilla/Add-ons/Code_snippets/Scrollbar This example shows how to style the scrollbars in your xul application. Scrollbars inside ...
- Mozilla/Add-ons/Code_snippets/Sidebar This page provides several snippets demonstrating how to work with the Firefox sidebar.
- Mozilla/Add-ons/Code_snippets/SVG_General On this page you will find some simple, general information on SVG markup. Hopefully, enough to ...
- Mozilla/Add-ons/Code_snippets/Threads When a task needs to be only briefly delayed, such that it runs after the current call chain ...
- Mozilla/Add-ons/Code_snippets/Toolbar There are two tutorials available:
- Mozilla/Add-ons/Code_snippets/Tree To expand all tree nodes:
- Mozilla/Add-ons/Code_snippets/Windows This article offers code snippets demonstrating common tasks you may wish to perform.
- Mozilla/Add-ons/Code_snippets/XML
- Mozilla/Add-ons/Code_snippets/XML/base_function These two functions aim to allow some support for xml:base.
- Mozilla/Add-ons/How_to_convert_an_overlay_extension_to_restartless First off, what kind of add-on are we talking about here? Well, XUL overlays and windows, JSM ...
- Mozilla/Tech/XPCOM/Accessing_the_Windows_Registry_Using_XPCOm When implementing Windows-specific functionality, it is often useful to access the Windows ...
- Mozilla/Thunderbird/Account_interfaces This page contains a list of the interfaces that you'll will most likely use when writing ...
- Signing_a_XPI This article describes how to sign your own Firefox extensions with a code-signing certificate ...