Search completed in 1.20 seconds.
Object prototypes - Learn web development
in this article, we explain how prototype chains work and look at how the prototype property can be used to add
methods to existing constructors.
... objective: to understand javascript object prototypes, how prototype chains work, and how to add new
methods onto the prototype property.
... javascript is often described as a prototype-based language — to provide inheritance, objects can have a prototype object, which acts as a template object that it inherits
methods and properties from.
...And 15 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
class is a template definition of an object's properties and
methods, the "blueprint" from which other more specific instances of the object are drawn.
...cryptanalysis creates techniques to break ciphers, in particular by
methods more efficient than a brute-force search.
... in addition to traditional
methods like frequency analysis and index of coincidence, cryptanalysis includes more recent
methods, like linear cryptanalysis or differential cryptanalysis, that can break more advanced ciphers.
...And 14 more matches
Python binding for NSS
the design of python-nss follows these basic guiding principles: be a thin layer with almost a one-to-one mapping of nss/nspr calls to python
methods and functions.
...struct) become
methods of that object.
... many
methods/functions provide sane default (keyword) parameters freeing the python programmer from having to specify all parameters yet allowing them to be overriden when necessary.
...And 14 more matches
Following the Android Toasts Tutorial from a JNI Perspective
the java code example above can be done with privileged javascript from firefox for android with the following code: window.nativewindow.toast.show("hello, firefox!", "short"); converting java to jni.jsm the first step is to look at the java code and see all the different types,
methods, constructors, and fields that are being used.
... in the toast code we have the following: types - context, charsequence, int, toast, and void
methods - maketext, show fields - length_short no constructors are used.
... when declaring
methods, the signatures of the types go right next to each other without any spacing.
...And 13 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
the dom level 1
methods, as shown in table 1, are commonly used to move an element to a certain position and toggle its visibility (menus, animations).
...
methods used to access elements method description document.getelementbyid( aid ) returns a reference to the element with the specified id.
...
methods used to traverse the dom property/method description childnodes returns an array of all child nodes of the element.
...And 12 more matches
Debugger.Object - Firefox Developer Tools
debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented
methods to inspect and modify its referent.
... the referent's properties do not appear directly as properties of the debugger.object instance; the debugger can access them only through
methods like debugger.object.prototype.getownpropertydescriptor and debugger.object.prototype.defineproperty, ensuring that the debugger will not inadvertently invoke the referent's getters and setters.
... proxyhandler if the referent is a proxy whose handler object was allocated by debuggee code, this is its handler object—the object whose
methods are invoked to implement accesses of the proxy's properties.
...And 12 more matches
HTTP Index - HTTP
on top of these basic concepts, numerous extensions have appeared over the years, adding new functionality and new semantics by creating new http
methods or headers.
... 31 reason: did not find method in cors header ‘access-control-allow-
methods’ cors, corsmethodnotfound, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the http method being used by the cors request is not included in the list of
methods specified by the response's access-control-allow-
methods header.
... this header specifies a comma-delineated list of the http
methods which may be used when using cors to access the url specified in the request; if the request is using any other method, this error occurs.
...And 12 more matches
LiveConnect Overview - Archive of obsolete content
when programming in javascript, you can use a wrapper object to access
methods and fields of the java object; calling a method or accessing a property on the wrapper results in a call on the java object.
...the jsobject class provides an interface for invoking javascript
methods and examining javascript properties.
...as a javaobject, mystring has access to the public instance
methods of java.lang.string and its superclass, java.lang.object.
...And 11 more matches
Mozilla DOM Hacking Guide
this is the schema used most of the time when using w3c dom objects and
methods.
... it is however different for some dom level 0 objects and
methods.
..."interface flattening is the ability to call
methods on an object regardless of the interface it was defined on." for example, when we have the document object in javascript, we can call indistinctly document.getelementbyid(), or document.addeventlistener(), although they are defined on two different interfaces (domdocument and domeventtarget.
...And 11 more matches
XPIDL
interfaces may furthermore contain typedefs, natives,
methods, constants, or attributes.
... nsqiresult void* void** object should only be used with
methods that act like queryinterface autf8string const nsacstring& nsacstring& string full unicode set permitted (translated to utf-8) acstring const nsacstring& nsacstring& string only chars in range \u0000-\u00ff permitted astring const nsastring& nsastring& string full unicode set permitted jsval const jsval& jsval* anyth...
...interfaces are basically a collection of constants,
methods, and attributes; in mozilla, these are the primary ways in which javascript code can interact with native c++ code.
...And 11 more matches
JavaScript object basics - Learn web development
object basics an object is a collection of related data and/or functionality (which usually consists of several variables and functions — which are called properties and
methods when they are inside objects.) let's work through an example to understand what they look like.
...the last two items are functions that allow the object to do something with that data, and are referred to as the object's
methods.
... dot notation above, you accessed the object's properties and
methods using dot notation.
...And 10 more matches
Inheritance in JavaScript - Learn web development
inside here you'll find the same person() constructor example that we've been using all the way through the module, with a slight difference — we've defined only the properties inside the constructor: function person(first, last, age, gender, interests) { this.name = { first, last }; this.age = age; this.gender = gender; this.interests = interests; }; the
methods are all defined on the constructor's prototype.
...i\'m ' + this.name.first + '.'); }; note: in the source code, you'll also see bio() and farewell()
methods defined.
...it does not contain the
methods of the person constructor's prototype property.
...And 10 more matches
JSAPI User Guide
spidermonkey provides a few core javascript data types—numbers, strings, arrays, objects, and so on—and a few
methods, such as array.push.
...it is up to the application developer to decide what objects and
methods are exposed to scripts.
...the example below defines a very basic jsclass (named global_class) with no
methods or properties of its own.
...And 10 more matches
Starting WebLock
registering for notifications the nsiobserverservice interface has
methods for registering and unregistering an nsiobserver object.
... these two
methods are used to dynamically add or remove an observer to a notification topic.
... interface iweblock : nsisupports the web locking interface the body of the block (the stuff between the curly braces) defines the
methods and attributes of our interface.
...And 10 more matches
Mozilla internal string guide
common read-only
methods: .length() - the number of code units (bytes for 8-bit string classes and char16_ts for 16-bit string classes) in the string.
... common
methods that modify the string: .assign(string) - assigns a new value to the string.
... str.assign(reversedstr); } as function parameters for
methods which are exposed across modules, use nsastring references to pass strings.
...And 10 more matches
StringView - Archive of obsolete content
the aims of this library are: to create a c-like interface for strings (i.e., an array of character codes — an arraybufferview in javascript) based upon the javascript arraybuffer interface to create a highly extensible library that anyone can extend by adding
methods to the object stringview.prototype to create a collection of
methods for such string-like objects (since now: stringviews) which work strictly on arrays of numbers rather than on creating new immutable javascript strings to work with unicode encodings other than javascript's default utf-16 domstrings introduction as web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using websockets, and so forth, it has become clear that there are times when it...
...awhole.subarray(nstartidx, nendidx) : awhole; } this.buffer = awhole.buffer; this.bufferview = awhole; this.rawdata = araw; object.freeze(this); } /* constructor's
methods */ stringview.loadutf8charcode = function (achars, nidx) { /* the iso 10646 view of utf-8 considers valid codepoints encoded by 1-6 bytes, * while the unicode view of utf-8 in 2003 has limited them to 1-4 bytes in order to * match utf-16's codepoints.
...*/ /* instances'
methods */ stringview.prototype.makeindex = function (nchrlength, nstartfrom) { var atarget = this.rawdata, nchrend, nrawlength = atarget.length, nstartidx = nstartfrom || 0, nidxend = nstartidx, nstopatchr = isnan(nchrlength) ?
...And 9 more matches
XPCOM Objects - Archive of obsolete content
those two
methods always receive the interface identifier as an argument.
... an interface is just a definition of a set of attributes and
methods that an object implementing it should have.
...these
methods are in the nsiprefbranch interface.
...And 9 more matches
Reading from Files - Archive of obsolete content
there are several
methods available to read from an input stream.
... the two most common for text files are the readstring and readline
methods for reading a string and a line from the file respectively.
...the files can be read in the same manner using the readstring and readline
methods.
...And 9 more matches
An Overview of XPCOM
in component-based programming, a component guarantees that the interfaces it provides will be immutable - that they will provide the same access to the same
methods across different versions of the component - establishing a contract with the software clients that use it.
...in this "semi-encapsulated" situation, the only part of the class that is exposed is a well-defined list of callable
methods (i.e., the interface).
...but an interface pointer is known to implement the nsisupports base interface, and so can be used to call
methods such as addref, release, or queryinterface.
...And 9 more matches
Plug-in Development Overview - Gecko Plugin API Reference
write your plug-in code and implement the appropriate plug-in api
methods for basic plug-in operation.
... you'll find an overview of the plug-in api
methods in this chapter, as well as separate chapters for all of the major functional areas of the plug-in api.
... a windowless plug-in can call the following netscape
methods to draw itself: npn_forceredraw: force a paint message for windowless plug-ins.
...And 8 more matches
Focus management with Vue refs - Learn web development
to do that, we need to handle focus in the todoitem component’s itemedited() and editcancelled()
methods.
... focusoneditbutton() { const editbuttonref = this.$refs.editbutton; editbuttonref.focus(); } next, add a call to this.focusoneditbutton() at the end of the itemedited() and editcancelled()
methods: itemedited(newitemname) { this.$emit("item-edited", newitemname); this.isediting = false; this.focusoneditbutton(); }, editcancelled() { this.isediting = false; this.focusoneditbutton(); }, try editing and then saving/cancelling a to-do item via your keyboard.
... vue lifecycle
methods next, we need to move focus to the edit form’s <input> element when the "edit" button is clicked.
...And 8 more matches
Browser API
api extensions: the api includes several new
methods and events to manipulate and listen for changes to the embedded content's state, interited by the htmliframeelement interface.
... browser api interfaces to support the requirement of a browser <iframe>, the htmliframeelement dom interface has been extended with new
methods that give the <iframe> some super powers.
... navigation
methods the following navigation
methods allow navigation through the browsing history of the <iframe>.
...And 8 more matches
JS_InitClass
all instances of the new class will inherit these
methods via the prototype chain.
... (this is the javascript equivalent of public, non-static
methods in c++ or java.) static_ps jspropertyspec * either null or a pointer to the first element of an array of jspropertyspecs, terminated by the null jspropertyspec.
...(this is the javascript equivalent of public static
methods in c++ or java.) description js_initclass initializes a jsclass and (optionally) makes it visible to javascript code.
...And 8 more matches
Plug-in Development Overview - Plugins
write your plug-in code and implement the appropriate plug-in api
methods for basic plug-in operation.
... you'll find an overview of the plug-in api
methods in this chapter, as well as separate chapters for all of the major functional areas of the plug-in api.
... a windowless plug-in can call the following netscape
methods to draw itself: npn_forceredraw: force a paint message for windowless plug-ins.
...And 8 more matches
Element - Web APIs
it only has
methods and properties common to all kinds of elements.
...
methods inherits
methods from its parents node, and its own parent, eventtarget, and implements those of parentnode, childnode, nondocumenttypechildnode, and animatable.
... obsolete
methods element.getattributenode() retrieves the node representation of the named attribute from the current node and returns it as an attr.
...And 8 more matches
Custom XUL Elements with XBL - Archive of obsolete content
with xbl you can define new elements and define their properties, attributes,
methods and event handlers.
...this code gets the dom object that corresponds to the xshelloperson tag, allowing you access to its
methods and properties.
...here you can define
methods and properties, as well as a constructor and a destructor for your element.
...And 7 more matches
Index - Learn web development
this article doesn't attempt to document all the possible
methods.
... 51 cooperative asynchronous javascript: timeouts and intervals animation, beginner, codingscripting, guide, intervals, javascript, loops, asynchronous, requestanimationframe, setinterval, settimeout, timeouts this tutorial looks at the traditional
methods javascript has available for running code asychronously after a set time period has elapsed, or at a regular interval (e.g.
...you should also appreciate that objects are very useful as structures for storing related data and functionality — if you tried to keep track of all the properties and
methods in our person object as separate variables and functions, it would be inefficient and frustrating, and we'd run the risk of clashing with other variables and functions that have the same names.
...And 7 more matches
Displaying Places information using views
like all places views, the built-in tree view implements this interface, which provides broad
methods such as getting the view's nsinavhistoryresult instance and examining the view's selection.
... finally, the built-in tree view implements several convenience
methods and properties of its own.
... you therefore have four points of interaction with the built-in places tree view: the convenience
methods and properties implemented directly on the view itself, the nsiplacesview interface of the view itself, the nsinavhistoryresulttreeviewer interface of the view's view, and the nsitreeview interface of the view's view.
...And 7 more matches
Accessing the Windows Registry Using XPCOM
both of these
methods take a root key as the first parameter.
...you can read the interface documentation for a full explanation, but we will show only the three most commonly used modes here: access_read — for reading values, enumerating keys, and receiving notifications access_write — for setting values and creating sub keys access_all — access for all operations in addition to open() and create(), there are the openchild() and createchild()
methods.
... you can call these
methods on an already-opened registry key to open a child key.
...And 7 more matches
Mail composition back end
(for detailed information on the listener interfaces, see the listener interfaces section of this document) nsimsgsend the following describes the
methods of the nsimsgsend interface.
... all of these
methods are asynchronous operations.
...this can be nsnull if you want to do the delivery operation "blind" the addlistener/removelistener
methods let the caller add and remove listeners to the sending interface.
...And 7 more matches
Add to iPhoto
this extension uses a number of
methods and data types, as well as constants, from three system frameworks.
... for the sake of organization, i chose to implement each system framework (and, mind you, i only declare the apis i actually use, not all of them) as a javascript object containing all the types and
methods that framework's api.
... the core foundation api is implemented by the corefoundation object, which consists of two
methods to initialize and shut down the library, a reference to the library, and all the types and
methods declared to support core foundation.
...And 7 more matches
Public class fields - JavaScript
just as in public instance
methods, if you're in a subclass you can access the superclass prototype using super.
...) { return 'base method output' } } class subclasswithinstancefield extends classwithinstancefield { subinstancefield = super.baseinstancemethod() } const base = new classwithinstancefield() const sub = new subclasswithinstancefield() console.log(base.anotherbaseinstancefield) // expected output: "base field" console.log(sub.subinstancefield) // expected output: "base method output" public
methods public static
methods the static keyword defines a static method for a class.
... static
methods aren't called on instances of the class.
...And 7 more matches
Classes - JavaScript
this is where you define class members, such as
methods or constructor.
... prototype
methods see also method definitions.
... class rectangle { constructor(height, width) { this.height = height; this.width = width; } // getter get area() { return this.calcarea(); } // method calcarea() { return this.height * this.width; } } const square = new rectangle(10, 10); console.log(square.area); // 100 static
methods the static keyword defines a static method for a class.
...And 7 more matches
Working with Svelte stores - Learn web development
if you implement the subscribe() and set()
methods, like we'll do later, the reactive $store syntax will also apply to your stores.
...in that case you'll have to rely on the store.subscribe() and store.set()
methods.
...add these lines below the todos array: console.log('todos store - todos:', todos) console.log('todos store content - $todos:', $todos) when you run the app now, you'll see something like this in your web console: as you can see, our store is just an object containing subscribe(), set(), and update()
methods, and $todos is our array of todos.
...And 6 more matches
Mozilla accessibility architecture
they may override some
methods, such as init() and shutdown(), and add other
methods to support interfaces needed only by the given toolkit.
... for example, nsaccessiblewrap implements the
methods in iaccessible, but because it is also an nsaccessible, it only needs to call the nsiaccessible
methods in "this" to get at the information it needs.
...this tree traversal is accomplished via toolkit-specific calls which end up as calls into nsiaccessible
methods getaccparent(), getaccnextsibling(), getaccprevioussibling(), getaccfirstchild(), getacclastchild(), getaccchildcount() and getchildat(childnum).
...And 6 more matches
Using XPCOM Components
the functionality of the cookiemanager component is available through the nsicookiemanager interface, which is comprised of the public
methods in the table below.
... xpconnect allows interface
methods defined via xpidl to be called from javascript, as part of javascript objects that represent instances of components like the cookiemanager.
... the webbrowserfind component components are used all over - in high-level browser-like functionality such as nswebbrowserfind, which provides find() and findnext()
methods for finding content in web pages, and in low-level tasks such as the manipulation of data.
...And 6 more matches
Performance API - Web APIs
methods the performance interface has two
methods.
... interfaces performance provides
methods and properties containing timing-related performance information for the given page.
... performanceentry provides
methods and properties the encapsulate a single performance metric that is part of the performance timeline.
...And 6 more matches
Preferences - Archive of obsolete content
note: this article doesn't cover all available
methods for manipulating preferences; please refer to the xpcom reference pages listed in resources section for the complete list of
methods.
... the interfaces dealing with preferences are fairly well documented, so using the
methods not mentioned here should be straightforward.
...there are six
methods in nsiprefbranch that read and write preferences: getboolpref(), setboolpref(), getcharpref(), setcharpref(), getintpref(), and setintpref().
...And 5 more matches
Using the W3C DOM - Archive of obsolete content
instead, use the w3c dom properties and
methods (examples in the next section).
... these are supported by internet explorer too so there is no need to use msie-specific attributes and
methods.
... in addition to these access
methods, the w3c dom specifications provide
methods for creating new elements and inserting them in a document, for creating attributes, new content, for traversing the content tree and for handling events dispatched as the user interacts with the document itself.
...And 5 more matches
Browser Feature Detection - Archive of obsolete content
among the
methods of browser detection, many people recommend using the existence of specific properties or
methods in a browser's dom to detect the browser type and whether it supports a given operation.
... this test takes that idea to the extreme and tests a large number of properties and
methods to determine the level of support a browser has for particular standards and reports a rating as the percentage of names the browser defines.
... 100% 100% 75% / 91% 75% / 75% dom core 2 100% 100% 100% 70% / 94% 58% / 58% dom 1 html 100% 100% 100% 100% / 100% 100% / 100% dom css 1 100% 100% 100% 100% / 100% 96% / 96% dom css 2 100% 98% 67% 71% / 83% 38% / 42% test results cross reference dom core level 1 support for properties/
methods in document name firefox 1.5 ie 6 & 7 opera 8.54 - 9.01 document.doctype true true true document.implementation true true true document.documentelement true true true document.createelement() true true true document.createdocumentfragment() true true true document.createtextnode()...
...And 5 more matches
Vue conditional rendering: editing existing todos - Learn web development
<button type="submit" class="btn btn__primary"> save <span class="visually-hidden">edit for {{label}}</span> </button> </div> </form> </template> <script> export default { props: { label: { type: string, required: true }, id: { type: string, required: true } }, data() { return { newlabel: this.label }; },
methods: { onsubmit() { if (this.newlabel && this.newlabel !== this.label) { this.$emit("item-edited", this.newlabel); } }, oncancel() { this.$emit("edit-cancelled"); } } }; </script> <style scoped> .edit-label { font-family: arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #0b0c0c; display: block; m...
... add isediting below your existing isdone data point: data() { return { isdone: this.done, isediting: false }; } now add your
methods inside a
methods property, right below your data() property:
methods: { deletetodo() { this.$emit('item-deleted'); }, toggletoitemeditform() { this.isediting = true; } } conditionally displaying components via v:if and v:else now we have an isediting flag that we can use to signify that the item is being edited (or not).
... getting back out of edit mode first, we need to add an itemedited() method to our todoitem component's
methods.
...And 5 more matches
Gecko info for Windows accessibility vendors
we have chosen a subset of readonly
methods in the dom needed for assistive technology vendors.
... msaa support: iaccessible
methods to use msaa with gecko, you'll need the tools and docs that come with the active accessibility 2.0 sdk tools.
... iaccessible
methods that we support: get_accparent get_accchildcount get_accchild get_accname get_accvalue get_accdescription get_accrole get_accstate get_accfocus get_accdefaultaction acclocation accselect acchittest accdodefaultaction accnavigate get_acckeyboardshortcut msaa support: iaccessible events and unique id's what msaa events do we support?
...And 5 more matches
Creating the Component Code
includes and constants in weblock1.cpp #include <stdio.h> // may be defined at the project level // in the makefile #define mozilla_strict_api #include "nsimodule.h" #include "nsifactory.h" #include "nsicomponentmanager.h" #include "nsicomponentregistrar.h" // use classes to handle iids // classes provide
methods for comparison: equals, etc.
...the variable kifactoryiid, for example, provides
methods like equals() that can be used to facilitate comparisons in the code, as in the following example from the mozilla source: using class
methods to handle identifiers if (aiid.equals(ns_get_iid(nsisupports))) { *ainstanceptr = (void*)(nsisupports*)this; ns_addref_this(); return ns_ok; } finally, sample_cid is an example of a cid that uniquely identifies the component.
...nsimodule has four
methods that must be implemented.
...And 5 more matches
nsIAccessible
last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) overview this section provides short overview of
methods and attributes of this interface.
... all
methods and attributes are grouped by categories.
... nsiaccessible.role to get the role of the accessible nsiaccessible.getstate() to get states of the accessibe nsiaccessible.name, nsiaccessible.value to get the name and the value of the accessible tree navigation you can navigate through the accessible tree by the following
methods and attributes.
...And 5 more matches
nsIEditor
« xpcom api reference editor/nsieditor.idlscriptable provides
methods and attributes used when editing page content.
...attrvalue, in boolean asuppresstransaction); void removeattributeorequivalent(in nsidomelement element, in domstring sourceattrname, in boolean asuppresstransaction); void postcreate(); void predestroy(in boolean adestroyingframes); selected content removal void deleteselection(in short action, in short stripwrappers); document info and file
methods void resetmodificationcount(); long getmodificationcount(); void incrementmodificationcount(in long amodcount); void incrementmodificationcount(in long amodcount); transaction
methods void dotransaction(in nsitransaction txn); void enableundo(in boolean enable); void undo(in unsigned long count); void canundo(out boo...
...id redo(in unsigned long count); void canredo(out boolean isenabled, out boolean canredo); void begintransaction(); void endtransaction(); void beginplaceholdertransaction(in nsiatom name); void endplaceholdertransaction(); boolean shouldtxnsetselection(); void setshouldtxnsetselection(in boolean should); inline spellchecking
methods nsiinlinespellchecker getinlinespellchecker(in boolean autocreate); void syncrealtimespell(); void setspellcheckuseroverride(in boolean enable); clipboard
methods void cut(); boolean cancut(); void copy(); boolean cancopy(); void paste(in long aselectiontype); boolean canpaste(in long aselectiontype); ...
...And 5 more matches
nsIFile
all
methods with string parameters have two forms.
...therefore, the utf-16 forms are scriptable, but the "native
methods" are not.
... delete_on_close 0x80000000 optional parameter used by opennsprfiledesc
methods append() this function is used for constructing a descendant of the current nsifile.
...And 5 more matches
nsIMsgFolder
check //github.com/realityripple/uxp/blob/master/mailnews/base/public/nsimsgfolder.idl for the newer
methods (esp.
... uri acstring readonly: old nsifolder properties and
methods.
... name astring old nsifolder properties and
methods.
...And 5 more matches
Drawing and Event Handling - Plugins
drawing plug-ins this section describes the
methods and processes you use in drawing both windowed and windowless plug-ins.
... the plug-in uses these
methods to draw plug-ins and to handle events: plug-in
methods, called by the browser: npp_handleevent: deliver a platform-specific event to the instance.
... browser-side
methods, called by the plug-in: npn_forceredraw: force a paint message to a windowless plug-in.
...And 5 more matches
Debugger.Object - Firefox Developer Tools
debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented
methods to inspect and modify its referent.
... the referent’s properties do not appear directly as properties of the debugger.object instance; the debugger can access them only through
methods like debugger.object.prototype.getownpropertydescriptor and debugger.object.prototype.defineproperty, ensuring that the debugger will not inadvertently invoke the referent’s getters and setters.
... function properties of the debugger.object prototype the functions described below may only be called with a this value referring to a debugger.object instance; they may not be used as
methods of other kinds of objects.
...And 5 more matches
DevTools API - Firefox Developer Tools
the gdevtools global object provides
methods to register a tool definition and to access tool instances.
...to use the gdevtools api from an add-on, it can be imported with following snippet const { gdevtools } = require("resource:///modules/devtools/gdevtools.jsm");
methods registertool(tooldefinition) registers a new tool and adds a tab to each existing toolbox.
...
methods getcurrentpanel() get the currently active toolpanel.
...And 5 more matches
AudioNode - Web APIs
ctor const analysernode = new analysernode(audioctx, { fftsize: 2048, maxdecibels: -25, mindecibels: -60, smoothingtimeconstant: 0.5, }); // factory method const analysernode = audioctx.createanalyser(); analysernode.fftsize = 2048; analysernode.maxdecibels = -25; analysernode.mindecibels = -60; analysernode.smoothingtimeconstant = 0.5; you are free to use either constructors or factory
methods, or mix both, however there are advantages to using the constructors: all parameters can be set during construction time and don't need to be set individually.
...while the actual processing is done internally by the browser and cannot be altered, you could write a wrapper around an audio node to provide custom properties and
methods.
... slightly better performance: in both chrome and firefox, the factory
methods call the constructors internally.
...And 5 more matches
CanvasRenderingContext2D - Web APIs
see the interface's properties and
methods in the sidebar and below.
...this code draws a house: // set line width ctx.linewidth = 10; // wall ctx.strokerect(75, 140, 150, 110); // door ctx.fillrect(130, 190, 40, 60); // roof ctx.beginpath(); ctx.moveto(50, 140); ctx.lineto(150, 60); ctx.lineto(250, 140); ctx.closepath(); ctx.stroke(); the resulting drawing looks like this: reference drawing rectangles there are three
methods that immediately draw rectangles to the canvas.
... drawing text the following
methods draw text.
...And 5 more matches
Drawing shapes with canvas - Web APIs
in upcoming pages we'll see two alternative
methods for clearrect(), and we'll also see how to change the color and stroke style of the rendered shapes.
... path
methods methods to set different paths for objects.
... the second step is calling the
methods that actually specify the paths to be drawn.
...And 5 more matches
The HTML DOM API - Web APIs
each node is based on the node interface, which provides properties for getting information about the node as well as
methods for creating, deleting, and organizing nodes within the dom.
... in order to expand upon the functionality of the core htmlelement interface to provide the features needed by a specific element, the htmlelement class is subclassed to add the needed properties and
methods.
...htmlcanvaselement augments the htmlelement type by adding properties such as height and
methods like getcontext() to provide canvas-specific features.
...And 5 more matches
PaymentRequest.PaymentRequest() - Web APIs
syntax var paymentrequest = new paymentrequest(methoddata, details, [options]); parameters methoddata contains an array of identifiers for the payment
methods the merchant web site accepts and any associated payment method specific data.
... each item in the array contains the following fields: supported
methods for early implementations of the spec, this was a sequence of identifiers for payment
methods that the merchant website accepts.
... starting with more recent browsers, this parameter is more generic than credit cards, it is a single domstring, and the meaning of the data parameter changes with the supported
methods.
...And 5 more matches
WorkerGlobalScope - Web APIs
it is a regular performance object, except that only a subset of its property and
methods are available to workers.
...
methods this interface inherits
methods from the eventtarget interface and windoworworkerglobalscope and windoweventhandlers mixins.
... standard
methods workerglobalscope.importscripts() imports one or more scripts into the worker's scope.
...And 5 more matches
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
overwriting of legacy
methods with grid layout works surprisingly well, due to the way grid interacts with these other
methods.
...5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } .wrapper ul { overflow: hidden; margin: 0 -10px; padding: 0; list-style: none; } .wrapper li { float: left; width: calc(33.333333% - 20px); margin: 0 10px 20px 10px; } <div class="wrapper"> <ul> <li class="card"><h2>one</h2> <p>we can use css grid to overwrite older
methods.</p> </li> <li class="card"><h2>two</h2> <p>we can use css grid to overwrite older
methods.</p> </li> <li class="card"><h2>three</h2> <p>we can use css grid to overwrite older
methods.</p> </li> <li class="card"><h2>four</h2> <p>we can use css grid to overwrite older
methods.</p> </li> <li class="c...
...ard"><h2>five</h2> <p>we can use css grid to overwrite older
methods.</p> </li> <li class="card"><h2>six</h2> <p>we can use css grid to overwrite older
methods.</p> </li> </ul> </div> the example demonstrates the typical problem that we have with floated layouts: if additional content is added to any one card, the layout breaks.
...And 5 more matches
Indexed collections - JavaScript
however, you can use the predefined array object and its
methods to work with arrays in your applications.
... the array object has
methods for manipulating arrays in various ways, such as joining, reversing, and sorting them.
... array
methods the array object has the following
methods: concat() joins two or more arrays and returns a new array.
...And 5 more matches
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
all these functions are now available via the new string api - appendutf16toutf8(srcstring, deststring); + deststring.append(ns_convertutf16toutf8(srcstring)); the signatures of the find
methods differ between the two apis.
...the findinreadable
methods do not exist in the external api.
... you may be able to use the find
methods instead.
...And 4 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
refer to the “javascript debugging
methods” sidebar.
...ndler) clear: function(event) { }, // dynamically generate menu items (event handler) createmenu: function(event) { }, // read file _readfile: function(afile) { }, // write file _writefile: function(afile, adata) { }, }; window.addeventlistener("load", function(){ gsessionstore.init(); }, false); window.addeventlistener("unload", function(){ gsessionstore.uninit(); }, false); wrap
methods and variables as properties of objects you’ll note that in listing 15, i’ve defined a lot of different
methods and variables as properties of a single object, gsessionstore.
... to overlay.xul <menupopup onpopupshowing="gsessionstore.createmenu(event);" oncommand="gsessionstore.restore(event);"> <menuitem label="save session" oncommand="gsessionstore.save(event);" /> <menuseparator /> <!-- dynamically generated menu items go here --> <menuseparator /> <menuitem label="clear sessions" oncommand="gsessionstore.clear(event);" /> </menupopup> implementing
methods now we’re going to actually implement the
methods we defined in the gsessionstore object, one at a time.
...And 4 more matches
Twitter - Archive of obsolete content
(it's easy!)
methods each method in twitter's api maps to a method here.
... most of twitter's
methods are supported, but not all.
... list
methods, spam reporting
methods, and oauth are not currently supported.
...And 4 more matches
Binding Implementations - Archive of obsolete content
introduction bindings can define
methods and properties on a bound element using the implementation tag.
... a binding implementation provides a new set of
methods and properties that can be invoked directly from the bound element.
... the
methods and properties of an implementation can be defined declaratively using method and property tags in xml, or an external implementation (e.g., a binary implementation) can be specified using the src attribute.
...And 4 more matches
Dynamically modifying XUL-based user interface - Archive of obsolete content
it explains the concept of dom documents, demonstrates a few simple examples of using dom calls to perform basic manipulations on a document, and then demonstrates working with anonymous xbl content using mozilla-specific
methods.
...there are also dom
methods that create, move, or delete elements from a document.
...examples: using dom
methods this section demonstrates the use of appendchild(), createelement(), insertbefore(), and removechild() dom
methods.
...And 4 more matches
Template and Tree Listeners - Archive of obsolete content
listening for template rebuilds the first of these is the simplest and involves two
methods, willrebuild and didrebuild.
... you would implement this object with these two
methods if you wish to be notified when the template is rebuilt using the builder's rebuild call.
...this listener will also work for tree builders, and will call the appropriate
methods before and after the tree has been generated.
...And 4 more matches
Anatomy of a video game - Game development
modern browsers strive to call
methods right as they are needed and idle (or do their other tasks) in the gaps.
...here is an example of a simple main loop: window.main = function () { window.requestanimationframe( main ); // whatever your main loop needs to do }; main(); // start the cycle note: in each of the main()
methods discussed here, we schedule a new requestanimationframe before performing our loop contents.
...it will not be attached to any object and main (or main() for
methods) will be a valid unused name in the rest of the application, free to be defined as something else.
...And 4 more matches
Safe - MDN Web Docs Glossary: Definitions of Web-related terms
several common http
methods are safe: get, head, or options.
... all safe
methods are also idempotent, but not all idempotent
methods are safe.
... even if safe
methods have a read-only semantic, servers can alter their state: e.g.
...And 4 more matches
Introduction to CSS layout - Learn web development
the
methods that can change how elements are laid out in css are as follows: the display property — standard values such as block, inline or inline-block can change how elements behave in normal flow, for example making a block-level element behave like an inline element (see types of css boxes for more information).
... we also have entire layout
methods that are switched on via specific display values, for example css grid and flexbox, which alter how elements inside the element they are set on are laid out.
... the display property the main
methods of achieving page layout in css are all values of the display property.
...And 4 more matches
Responsive design - Learn web development
flexible layout before responsive design a number of approaches were developed to try to solve the downsides of the liquid or fixed-width
methods of building websites.
...modern css layout
methods are inherently responsive, and we have new things built into the web platform to make designing responsive sites easier.
... .col { width: 6.25%; /* 60 / 960 = 0.0625 */ } this approach will be found in many places across the web today, and it is documented here in the layout section of our legacy layout
methods article.
...And 4 more matches
HTTP Cache
//github.com/realityripple/uxp/blob/master/netwerk/cache2/nsicachestorageservice.idl "@mozilla.org/netwerk/cache-storage-service;1" provides
methods accessing “storage” objects – see nsicachestorage below – giving further access to cache entries – see nsicacheentry more below – per specific url.
... currently we have 3 types of storages, all the access
methods return an nsicachestorage object: memory-only (memorycachestorage): stores data only in a memory cache, data in this storage are never put to disk disk (diskcachestorage): stores data on disk, but for existing entries also looks into the memory-only storage; when instructed via a special argument also primarily looks into application caches application cache (appcachestorage): when a consumer has a specific nsiapplicationcache (i.e.
... a particular app cache version in a group) in hands, this storage will provide read and write access to entries in that application cache; when the app cache is not specified, this storage will operate over all existing app caches the service also provides
methods to clear the whole disk and memory cache content or purge any intermediate memory structures: clear – after it returns, all entries are no longer accessible through the cache apis; the method is fast to execute and non-blocking in any way; the actual erase happens in background purgefrommemory – removes (schedules to remove) any intermediate cache data held in memory for faster access (more about the intermediate cache below) nsiloadcontextinfo distinguishes the scope of the sto...
...And 4 more matches
IPDL Tutorial
because protocol messages are represented as c++
methods, it's easy to forget that they are in fact asynchronous messages: by default the c++ method will return immediately, before the message has been delivered.
... the parameters of the recv*
methods (const nscstring& pluginpath in the example) are references to temporary objects, so copy them if you need to keep their data around.
... at the c++ layer, the subclasses in both the child and the parent must implement
methods for allocating and deallocating the subprotocol actor.
...And 4 more matches
JNI.jsm
method overview cdata getforthread(); cdata loadclass(cdata ajenv, string aclassfullyqualifiedname, [optional] object adeclares); cdata newstring(cdata ajenv, string astr); string readstring(cdata ajenv, cdata ajavastring); void unloadclasses();
methods getforthread() blah blah cdata getforthread(); parameters this function does not take any arguments.
...a required object that contains up to five fields of key names: constructors, fields, static_fields,
methods, and static_
methods.
... working with arrays creating/preallocating a typed array
methods cdata .get(number aindex); cdata .getelements(number astart, number alength); void .set(number aindex, cdata avalue); void .setelements(number astart, [array, size_is(arr.length > number anynumber > 0)] in cdata avalsarray); .get() gets the value of the element in the array at given aindex.
...And 4 more matches
Using XPCOM Utilities to Make Things Easier
furthermore, ns_decl_ appended with any interface name in all caps will declare all of the
methods of that interface for you.
... for example, ns_decl_nsifoo will declare all of the
methods of nsifoo provided that it exists and that nsifoo.h was generated by the xpidl compiler.
... consider the following real class: class myenumerator : public nsisimpleenumerator { public: ns_decl_isupports ns_decl_nsisimpleenumerator myenumerator(); virtual ~myenumerator() {} }; the declaration of this nsisimpleenumerator class doesn't include any
methods other than the contructor and destructor.
...And 4 more matches
nsIXULTemplateQueryProcessor
each result will have the four variables referred to defined for it and the values may be retrieved using the result's nsixultemplateresult.getbindingfor() and nsixultemplateresult.getbindingobjectfor()
methods.
... the template builder must call initializeforbuilding() before the other
methods, except for translateref().
...the initializeforbuilding(), compilequery() and addbinding()
methods may not be called after generateresults() has been called until the builder indicates that the generated output is being removed by calling the done() method.
...And 4 more matches
Debugger.Frame - Firefox Developer Tools
ace whatever properties it likes on its debugger.frame instances, without worrying about interfering with other debuggers.) when the debuggee pops a stack frame (say, because a function call has returned or an exception has been thrown from it), the debugger.frame instance referring to that frame becomes inactive: its live property becomes false, and accessing its other properties or calling its
methods throws an exception.
... (note that the debuggee is not considered an “immediate caller” of handler
methods it triggers.
... even though the debuggee and debugger share the same javascript stack, frames pushed for spidermonkey’s calls to handler
methods to report events in the debuggee are never considered visible frames.) invocation functions and “debugger” frames aninvocation function is any function in this interface that allows the debugger to invoke code in the debuggee: debugger.object.prototype.call, debugger.frame.prototype.eval, and so on.
...And 4 more matches
Introduction to the File and Directory Entries API - Web APIs
in contrast, the synchronous api does not use callbacks because the api
methods return values.
... global
methods of the asynchronous and synchronous apis.
... the asynchronous api has the following global
methods: requestfilesystem() and resolvelocalfilesystemurl().
...And 4 more matches
Node - Web APIs
methods in addition to the properties below, node inherits
methods from its parent, eventtarget.
... obsolete
methods node.getuserdata() allows a user to get some domuserdata from the node.
... living standard added the following
methods: getrootnode() dom4the definition of 'node' in that specification.
...And 4 more matches
Using the Payment Request API - Web APIs
this takes two mandatory parameters and one option parameter: methoddata — an object containing information concerning the payment provider, such as what payment
methods are supported, etc.
... so for example, you could create a new paymentrequest instance like so: var request = new paymentrequest(buildsupportedpaymentmethoddata(), buildshoppingcartdetails()); the functions invoked inside the constructor simply return the required object parameters: function buildsupportedpaymentmethoddata() { // example supported payment
methods: return [{ supported
methods: 'basic-card', data: { supportednetworks: ['visa', 'mastercard'], supportedtypes: ['debit', 'credit'] } }]; } function buildshoppingcartdetails() { // hardcoded for demo purposes: return { id: 'order-123', displayitems: [ { label: 'example item', amount: {currency: 'usd', value: '1.00'} } ], t...
... other useful payment request
methods there are some other useful payment request
methods worth knowing about.
...And 4 more matches
WindowOrWorkerGlobalScope.setInterval() - Web APIs
this more complex version is nothing but a big and scalable collection of
methods for the daemon constructor.
...so the minidaemon framework remains the recommended way for simple animations, because daemon without its collection of
methods is essentially a clone of it.
...); } if (nlen > 0) { this.length = math.floor(nlen); } } minidaemon.prototype.owner = null; minidaemon.prototype.task = null; minidaemon.prototype.rate = 100; minidaemon.prototype.length = infinity; /* these properties should be read-only */ minidaemon.prototype.session = -1; minidaemon.prototype.index = 0; minidaemon.prototype.paused = true; minidaemon.prototype.backw = true; /* global
methods */ minidaemon.forcecall = function (odmn) { odmn.index += odmn.backw ?
...And 4 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
deciding which msaa features to support msaa
methods - cheat sheet for developers the iaccessible interface is used in a tree of iaccessible's, each one representing a data node, similar to a dom.
... here are the
methods supported in iaccessible - a minimal implementation would contain those marked "[important]": get_accparent: get the parent of an iaccessible.
...in custom interfaces, create
methods that hand back a lot of data in one call, rather than requiring a large number of calls.
...And 4 more matches
Cross-Origin Resource Sharing (CORS) - HTTP
additionally, for http request
methods that can cause side-effects on server data (in particular, http
methods other than get, or post with certain mime types), the specification mandates that browsers "preflight" the request, soliciting supported
methods from the server with the http options request method, and then, upon "approval" from the server, sending the actual request.
...a “simple request” is one that meets all the following conditions: one of the allowed
methods: get head post apart from the headers automatically set by the user agent (for example, connection, user-agent, or the other headers defined in the fetch spec as a “forbidden header name”), the only headers which are allowed to be manually set are those which the fetch spec defines as a “cors-safelisted request-header”, which are: accept accept-language content-langua...
...on/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 accept-language: en-us,en;q=0.5 accept-encoding: gzip,deflate connection: keep-alive origin: http://foo.example access-control-request-method: post access-control-request-headers: x-pingother, content-type http/1.1 204 no content date: mon, 01 dec 2008 01:15:39 gmt server: apache/2 access-control-allow-origin: https://foo.example access-control-allow-
methods: post, get, options access-control-allow-headers: x-pingother, content-type access-control-max-age: 86400 vary: accept-encoding, origin keep-alive: timeout=2, max=100 connection: keep-alive once the preflight request is complete, the real request is sent: post /doc http/1.1 host: bar.other user-agent: mozilla/5.0 (macintosh; intel mac os x 10.14; rv:71.0) gecko/20100101 firefox/71.0 accept: te...
...And 4 more matches
Index - HTTP
9 access-control-allow-
methods cors, http, reference, header the access-control-allow-
methods response header specifies the method or
methods allowed when accessing the resource in response to a preflight request.
... 12 access-control-max-age cors, http, reference, header the access-control-max-age response header indicates how long the results of a preflight request (that is the information contained in the access-control-allow-
methods and access-control-allow-headers headers) can be cached.
... 16 allow entity header, http, http header, reference, header the allow header lists the set of
methods support by a resource.
...And 4 more matches
A re-introduction to JavaScript (JS tutorial) - JavaScript
overview javascript is a multi-paradigm, dynamic language with types and operators, standard built-in objects, and
methods.
...they have
methods as well that allow you to manipulate the string and access information about the string: 'hello'.charat(0); // "h" 'hello, world'.replace('world', 'mars'); // "hello, mars" 'hello'.touppercase(); // "hello" other types javascript distinguishes between null, which is a value that indicates a deliberate non-value (and is only accessible through the null keyword), and undefined, which is a value...
... another way of iterating over an array that was added with ecmascript 5 is foreach(): ['dog', 'cat', 'hen'].foreach(function(currentvalue, index, array) { // do something with currentvalue or array[index] }); if you want to append an item to an array simply do it like this: a.push(item); arrays come with a number of
methods.
...And 4 more matches
Date - JavaScript
note: it's important to keep in mind that while the time value at the heart of a date object is utc, the basic
methods to fetch the date and time or its components all work in the local (i.e.
... date format and time zone conversions there are a number of
methods available to obtain a date in various formats, as well as to perform time zone conversions.
... in addition to
methods to read and alter individual components of the local date and time (such as getday() and sethours()), there are also versions of the same
methods that read and manipulate the date and time using utc (such as getutcday() and setutchours()).
...And 4 more matches
Menu - Archive of obsolete content
methods add(items) clear() contexton(node) hide() insertbefore(newitems, target) item(target) popupon(node) remove(target) replace(target, newitems) reset() set(items) show(anchornode) add(items)...
...this method and set() are the recommended
methods of adding items to a menu.
...this method and add() are the recommended
methods of adding items to a menu.
...And 3 more matches
Modularization techniques - Archive of obsolete content
reference counting is performed using the addref() and release()
methods.
...the important things to notice are that the interface inherits from nsisupports, and all member functions are pure virtual
methods.
....h" static ns_define_iid(kisupportsiid, ns_isupports_iid); static ns_define_iid(kifactoryiid, ns_ifactory_iid); static ns_define_iid(kisampleiid, ns_isample_iid); static ns_define_cid(kisamplecid, ns_isample_cid); /* * nssampleclass declaration */ class nssample: public nsisample { private: nsrefcnt mrefcnt; public: // constructor and destuctor nssample(); ~nssample(); // nsisupports
methods ns_imethod queryinterface(const nsiid &aiid, void **aresult); ns_imethod_(nsrefcnt) addref(void); ns_imethod_(nsrefcnt) release(void); // nsisample method ns_imethod hello(); }; /* * nssamplefactory declaration */ class nssamplefactory: public nsifactory { private: nsrefcnt mrefcnt; public: nssamplefactory(); ~nssamplefactory(); // nsisupports meth...
...And 3 more matches
Document Object Model - Archive of obsolete content
the dom structure may be examined and modified using various
methods provided for this purpose.
...although there is only ever one document associated with a window at a time, you may load additional documents using various
methods.
...you can refer to the properties and
methods of the global object without having to qualify them with an object.
...And 3 more matches
Manipulating Lists - Archive of obsolete content
« previousnext » the xul listbox provides a number of specialized
methods.
... list manipulation the listbox element provides numerous
methods to retrieve and manipulate its items.
... these three
methods are also available for several other xul elements and work in the same manner.
...And 3 more matches
browser - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a xul <browser> element represents a frame which is expected to contain a view of a web document.
... it is similar to an iframe except that it holds a page history and contains additional
methods to manipulate the currently displayed page.
... get firefox most of the properties and
methods of the browser will rarely be used and can only be called from chrome urls.
...And 3 more matches
editor - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a frame which is expected to contain an editable document.
... attributes editortype, src, type properties accessibletype, commandmanager, contentdocument, contentwindow, docshell, editingsession, editortype, webbrowserfind, webnavigation
methods geteditor, gethtmleditor, makeeditable examples this example shows how to made the editor editable by setting the designmode property of the loaded html document: <script language="javascript"> function initeditor(){ // this function is called to set up the editor var editor = document.getelementbyid("myeditor"); editor.contentdocument.designmode = 'on'; } </script> <editor id="myedito...
...most of its
methods are callable directly on the element itself, such as goback and goforward.
...And 3 more matches
calICalendarView - Archive of obsolete content
because of this close association between
methods and attributes on the one hand, and content on the other, calicalendarview implementations are particularly well suited to xbl.
...this explains the need for the fairly large list off attributes and
methods that must be implemented, so that outside code can be able to gain a decent picture of the current state of those nodes.
... it should be noted, however, that the
methods and attributes implemented by a calicalendarview need not behave in any predictable fashion.
...And 3 more matches
Using Web Workers - Web APIs
for example, you can't directly manipulate the dom from inside a worker, or use some default
methods and properties of the window object.
...url, defaultlistener, onerror) { var instance = this, worker = new worker(url), listeners = {}; this.defaultlistener = defaultlistener || function() {}; if (onerror) {worker.onerror = onerror;} this.postmessage = function(message) { worker.postmessage(message); } this.terminate = function() { worker.terminate(); } } then we add the
methods of adding/removing listeners: this.addlisteners = function(name, listener) { listeners[name] = listener; } this.removelisteners = function(name) { delete listeners[name]; } here we let the worker handle two simple operations for illustration: getting the difference of two numbers and making an alert after three seconds.
... in order to achieve that we first implement a sendquery method which queries if the worker actually has the corresponding
methods to do what we want.
...And 3 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
this.r = obj.r; this.g = obj.g; this.b = obj.b; this.a = obj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.format = 'hsl'; }; /*==========
methods to set color properties ==========*/ color.prototype.isvalidrgbvalue = function isvalidrgbvalue(value) { return (typeof(value) === 'number' && isnan(value) === false && value >= 0 && value <= 255); }; color.prototype.setrgba = function setrgba(red, green, blue, alpha) { if (this.isvalidrgbvalue(red) === false || this.isvalidrgbvalue(green) === false || this.isvalidrgbvalue(blue)...
...valid !== true) return; if (value[0] === '#') value = value.slice(1, value.length); if (value.length === 3) value = value.replace(/([0-9a-f])([0-9a-f])([0-9a-f])/i,'$1$1$2$2$3$3'); this.r = parseint(value.substr(0, 2), 16); this.g = parseint(value.substr(2, 2), 16); this.b = parseint(value.substr(4, 2), 16); this.alpha = 1; this.rgbtohsv(); }; /*========== conversion
methods ==========*/ color.prototype.converttohsl = function converttohsl() { if (this.format === 'hsl') return; this.setformat('hsl'); this.rgbtohsl(); }; color.prototype.converttohsv = function converttohsv() { if (this.format === 'hsv') return; this.setformat('hsv'); this.rgbtohsv(); }; /*========== update
methods ==========*/ color.prototype.updatergb = function updaterg...
...lta) { if (cmax === red ) { hue = ((green - blue) / delta); } if (cmax === green ) { hue = 2 + (blue - red) / delta; } if (cmax === blue ) { hue = 4 + (red - green) / delta; } if (cmax) saturation = delta / x; } this.hue = 60 * hue | 0; if (this.hue < 0) this.hue += 360; this.saturation = (saturation * 100) | 0; this.lightness = (lightness * 100) | 0; }; /*========== get
methods ==========*/ color.prototype.gethexa = function gethexa() { var r = this.r.tostring(16); var g = this.g.tostring(16); var b = this.b.tostring(16); if (this.r < 16) r = '0' + r; if (this.g < 16) g = '0' + g; if (this.b < 16) b = '0' + b; var value = '#' + r + g + b; return value.touppercase(); }; color.prototype.getrgba = function getrgba() { var rgb = '(' + this.r + ', ' +...
...And 3 more matches
If-None-Match - HTTP
for get and head
methods, the server will send back the requested resource, with a 200 status, only if it doesn't have an etag matching the given ones.
... for other
methods, the request will be processed only if the eventually existing resource's etag doesn't match any of the values listed.
... when the condition fails for get and head
methods, then the server must return http status code 304 (not modified).
...And 3 more matches
Closures - JavaScript
this has obvious parallels to object-oriented programming, where objects allow you to associate data (the object's properties) with one or more
methods.
... emulating private
methods with closures languages such as java allow you to declare
methods as private, meaning that they can be called only by other
methods in the same class.
... javascript does not provide a native way of doing this, but it is possible to emulate private
methods using closures.
...And 3 more matches
Equality comparisons and sameness - JavaScript
toprimitive(a) attempts to convert its object argument to a primitive value, by attempting to invoke varying sequences of a.tostring and a.valueof
methods on a.
... here's a non-exhaustive list of built-in
methods and operators that might cause a distinction between -0 and +0 to manifest itself in your code: - (unary negation) let stoppingforce = obj.mass * -obj.velocity; if obj.velocity is 0 (or computes to 0), a -0 is introduced at that place and propogates out into stoppingforce.
... math.atan2 math.ceil math.pow math.round in some cases,it's possible for a -0 to be introduced into an expression as a return value of these
methods even when no -0 exists as one of the parameters.
...And 3 more matches
Introduction - JavaScript
functions can be properties of objects, executing as loosely typed
methods.
...you do not have to declare all variables, classes, and
methods.
... you do not have to be concerned with whether
methods are public, private, or protected, and you do not have to implement interfaces.
...And 3 more matches
Regular expressions - JavaScript
these patterns are used with the exec() and test()
methods of regexp, and with the match(), matchall(), replace(), replaceall(), search(), and split()
methods of string.
... using regular expressions in javascript regular expressions are used with the regexp
methods test() and exec() and with the string
methods match(), replace(), search(), and split().
... these
methods are explained in detail in the javascript reference.
...And 3 more matches
Promise - JavaScript
this lets asynchronous
methods return values like synchronous
methods: instead of immediately returning the final value, the asynchronous method returns a promise to supply the value at some point in the future.
... as the promise.prototype.then() and promise.prototype.catch()
methods return promises, they can be chained.
... chained promises the
methods promise.then(), promise.catch(), and promise.finally() are used to associate further action with a promise that becomes settled.
...And 3 more matches
Reflect - JavaScript
reflect is a built-in object that provides
methods for interceptable javascript operations.
... the
methods are the same as those of proxy handlers.
...all properties and
methods of reflect are static (just like the math object).
...And 3 more matches
String - JavaScript
javascript automatically converts primitives to string objects, so that it's possible to use string object
methods for primitive strings.
... that form looks like this: let longstring = "this is a very long string which needs \ to wrap across multiple lines because \ otherwise my code is unreadable." both of the above
methods result in identical strings.
... static
methods string.fromcharcode(num1 [, ...[, numn]]) returns a string created by using the specified sequence of unicode values.
...And 3 more matches
this - JavaScript
all non-static
methods within the class are added to the prototype of this: class example { constructor() { const proto = object.getprototypeof(this); console.log(object.getownpropertynames(proto)); } first(){} second(){} static third(){} } new example(); // ['constructor', 'first', 'second'] note: static
methods are not properties of this.
... o.b = {g: independent, prop: 42}; console.log(o.b.g()); // 42 this on the object's prototype chain the same notion holds true for
methods defined somewhere on the object's prototype chain.
...it's not exactly dead because it gets executed, but it can be eliminated with no outside effects.) as a dom event handler when a function is used as an event handler, its this is set to the element on which the listener is placed (some browsers do not follow this convention for listeners added dynamically with
methods other than addeventlistener()).
...And 3 more matches
ui/sidebar - Archive of obsolete content
from firefox 33 onwards you can pass a browserwindow into these
methods, and they will then operate on the specified window.
...once a sidebar has been created it can be shown and hidden in the active window using its show() and hide()
methods.
...
methods dispose() destroys the sidebar.
...And 2 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
note: interface definition language (idl) is a language for giving standard definitions of objects,
methods, and so forth.
... the nsilocalfile object includes
methods that return virtual state values for the current file, as shown in table 1.
... table 1:
methods for checking file states method name description nsilocalfile.exists() determines whether or not the file exists.
...And 2 more matches
Safely loading URIs - Archive of obsolete content
to solve this problem, gecko provides
methods that allow the caller to check whether it's safe to load a particular uri.
... these
methods are exposed on the nsiscriptsecuritymanager interface and are called checkloaduri, checkloaduriwithprincipal, and checkloaduristr.
... all three
methods take three arguments: the first argument identifies the source of the uri, the second argument is the uri that one plans to load, and the third argument is a set of flags that can be used to impose additional restrictions on the uris that may be loaded.
...And 2 more matches
Elements - Archive of obsolete content
a xbl binding can add anonymous content, fields, properties,
methods, and event handlers to html/xml elements.
...in the latter case all
methods and handlers will be blocked, but the anonymous content and styling will be still used.
... implementation <!entity % implementation-content "(method|property)*"> <!element implementation %implementation-content;> <!attlist implementation id id #implied name cdata #implied implements cdata #implied > the implementation element describes the set of
methods and properties that are attached to the bound element.
...And 2 more matches
Writing to Files - Archive of obsolete content
there are several
methods available to write to a stream.
...a number of
methods are available which may be used for this.
...once opened, you can write to the file using various writing
methods.
...And 2 more matches
listbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used to create a list of items where one or more of the items may be selected.
...there are numerous
methods which allow the items in the listbox to be retrieved and modified.
... attributes disabled, disablekeynavigation, preference, rows, seltype, suppressonselect, tabindex, value properties accessibletype, currentindex, currentitem, disabled, disablekeynavigation, itemcount, listboxobject, selectedcount, selectedindex, selecteditem, selecteditems, seltype, suppressonselect, tabindex, value
methods additemtoselection, appenditem, clearselection, ensureelementisvisible, ensureindexisvisible, getindexoffirstvisiblerow, getindexofitem, getitematindex, getnumberofvisiblerows, getrowcount, getselecteditem, insertitemat, invertselection, movebyoffset, removeitemat, removeitemfromselection, scrolltoindex, selectall, selectitem, selectitemrange, timedselect, toggleitemselection examples <list...
...And 2 more matches
NPAPI plugin reference - Archive of obsolete content
browser-side plug-in api this chapter describes
methods in the plug-in api that are provided by the browser; these allow call back to the browser to request information, tell the browser to repaint part of the window, and so forth.
... the names of all of these
methods begin with npn_ to indicate that they are implemented by the browser and called by the plug-in.
... npapi plug-in side api this chapter describes
methods in the plug-in api that are available from the plug-in object; these allow plug-ins to interact with the browser.
...And 2 more matches
Adobe Flash - Archive of obsolete content
it can also access javascript
methods from within the plugin.
... this article explains how javascript can be used to access
methods from within the flash plugin, as well as how a feature called fscommands can be used to access javascript functions from within the flash animation.
...in general, to invoke a macromedia-defined method on a flash animation in netscape gecko browsers: use dom
methods to get a handle to the html element that spawns the plugin.
...And 2 more matches
Writing JavaScript for XHTML - Archive of obsolete content
solution: use or convert to lower case for
methods like getelementsbytagname(), passing the name in lower case will work in both html and xhtml.
... solution: use dom
methods many people avoided dom
methods because of the typing to create one simple element, when document.write() worked.
...use dom
methods to create all of your elements, attributes and other nodes.
...And 2 more matches
Windows Media in Netscape - Archive of obsolete content
while the progid cannot be used to create a windows media player object that exposes all its properties and
methods, it is useful for rapid detections.
...unlike using the progid as an argument, using wmplayer.ocx.7 as an argument to both these apis creates a fully usable reference to the windows media player 7 or 9 control, with all the
methods and properties exposed to javascript.
... scripting the windows media player control the number of
methods and properties that are exposed by the windows media player, including the events that the player throws for handling by scripts in the web page containing the control, are covered in detail by the windows media player sdk.
...And 2 more matches
Obsolete: XPCOM-based scripting for NPAPI plugins - Archive of obsolete content
this class will contain native
methods callable from javascript.
... this class should also inherit from nsiclassinfo and implement its
methods to be able to request all necessary privileges from the mozilla security manager (see example 2).
... how to call plugin native
methods the following html code will do the job:</p> this should be changed, we shouldn't advocate embed <embed type="application/plugin-mimetype"> <script language="javascript"> var embed = document.embeds[0]; embed.nativemethod(); </script> how to build and install having the built mozilla tree is probably not necessary, but building the plugin with a scriptable instance interface will require mozilla headers and the xpcom compatible idl compiler -- xpidl.exe.
...And 2 more matches
Mixin - MDN Web Docs Glossary: Definitions of Web-related terms
a mixin is a class or interface in which some or all of its
methods and/or properties are unimplemented, requiring that another class or interface provide the missing implementations.
... the new class or interface then includes both the properties and
methods from the mixin as well as those it defines itself.
... all of the
methods and properties are used exactly the same regardless of whether they're implemented in the mixin or the interface or class that implements the mixin.
...And 2 more matches
Supporting older browsers - Learn web development
previous overview: css layout next in this module, we recommend using flexbox and grid as the main layout
methods for your designs.
... however, there will be visitors to your site who use older browsers, or browsers which do not support the
methods you have used.
... creating fallbacks in css css specifications contain information that explains what the browser does when two layout
methods are applied to the same item.
...And 2 more matches
Manipulating documents - Learn web development
using
methods available on this object you can do things like return the window's size (see window.innerwidth and window.innerheight), manipulate the document loaded into that window, store data specific to that document on the client-side (for example using a local database or other storage mechanism), attach an event handler to the current window, and more.
...inside your script element, add the following line: const link = document.queryselector('a'); now we have the element reference stored in a variable, we can start to manipulate it using properties and
methods available to it (these are defined on interfaces like htmlanchorelement in the case of <a> element, its more general parent interface htmlelement, and node — which represents all nodes in a dom).
... there are older
methods available for grabbing element references, such as: document.getelementbyid(), which selects an element with a given id attribute value, e.g.
...And 2 more matches
Object-oriented JavaScript for beginners - Learn web development
notice that it has all the features you'd expect in a function, although it doesn't return anything or explicitly create an object — it basically just defines properties and
methods.
...you can now see that we have two new objects on the page, each of which is stored under a different namespace — when you access their properties and
methods, you have to start calls with person1 or person2; the functionality contained within is neatly packaged away so it won't clash with other functionality.
...i\'m ' + this.name.first + '.'); }; } now add in the following line below it, to create an object instance from it: let person1 = new person('bob', 'smith', 32, 'male', ['music', 'skiing']); you can now see that you can access the properties and
methods just like we did previously — try these in your js console: person1['age'] person1.interests[1] person1.bio() // etc.
...And 2 more matches
Using Vue computed properties - Learn web development
these work similarly to
methods, but only re-run when one of their dependencies changes.
...computed properties work similarly to
methods, but only re-run when one of their dependencies changes.
... to create a computed property, we need to add a computed property to our component object, much like the
methods property we've used previously.
...And 2 more matches
Creating Sandboxed HTTP Connections
nsiuri is an xpcom representation of an uri, with useful
methods to query and manipulate the uri.
...it takes two arguments: a listener and a context that is passed to the listener's
methods.
...it is usually best to use a javascript wrapper that implements all the required
methods and calls the specified callback function when the connection has completed.
...And 2 more matches
Embedding Tips
this interface also has
methods for reloading, stopping a load and going back and forward in the history.
... query for the nsiwebbrowserpersist interface implemented on the web browser object and call the saveuri() or savedocument()
methods on that.
...as the operation progresses,
methods on the listener such as onstatechange, onprogresschange etc.
...And 2 more matches
OS.File for the main thread
this example also shows the resolve value of open (an instance of os.file, this is a file, so you can do any of the
methods on it found here), write (a number indicating bytes written), and close (undefined, meaning there is no resolve value).
...path, in date|number accessdate, in date|number modificationdate); promise<void> setpermissions(in string path, in object options ); promise<file.info> stat(in string path, [optional] in object options); promise<void> unixsymlink(in string targetpath, in string createpath); promise<void> writeatomic(in string path, in arrayview data, in object options);
methods os.file.open() use method os.file.open() to open a file.
...
methods overview promise<void> close() promise<void> flush() promise<number> getposition() promise<number> read([optional] in number bytes) promise<void> setdates(in date|number accessdate, in date|number modificationdate); promise<void> setposition(in number bytes) promise<file.info> stat() promise<number> write(in arraybufferview ...
...And 2 more matches
SpiderMonkey Internals
standard library the
methods for arrays, booleans, dates, functions, numbers, and strings are implemented using the js api.
...most string
methods are customized to accept a primitive string as the this argument.
... (otherwise, spidermonkey converts primitive values to objects before invoking their
methods, per ecma 262-3 §11.2.1.) error handling spidermonkey has two interdependent error-handling systems: javascript exceptions (which are not implemented with, or even compatible with, any kind of native c/c++ exception handling) and error reporting.
...And 2 more matches
JS::CallArgs
(3nd argument of jsnative)
methods methods of js::callargs method description bool requireatleast(jscontext *cx, const char *fnname, unsigned required) returns true if there are at least required arguments passed in.
...
methods inherited from js::callargsbase method description unsigned length() const returns the number of arguments..
...
methods inherited from js::detail::callreceiverbase method description jsobject &callee() const returns the function being called, as an object.
...And 2 more matches
nsIAccessibleText
constant value description coord_type_screen 0 coord_type_window 1
methods addselection() void addselection( in long startoffset, in long endoffset ); parameters startoffset endoffset getattributerange() obsolete since gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) get the accessible and start/end offsets around the given offset.
... getselectionbounds() void getselectionbounds( in long selectionnum, out long startoffset, out long endoffset ); parameters selectionnum startoffset endoffset gettext() string
methods may need to return multibyte-encoded strings, since some locales can not be encoded using 16-bit chars.
...astring gettext( in long startoffset, in long endoffset ); parameters startoffset endoffset return value gettextafteroffset() string
methods may need to return multibyte-encoded strings, since some locales can't be encoded using 16-bit chars.
...And 2 more matches
nsIAppShell
methods create() obsolete since gecko 1.9 (firefox 3) creates an application shell.
... resumenative() resumes the use of additional platform-specific
methods to run() gecko events on the main application thread.
...suspendnative() suspends the use of additional platform-specific
methods (besides the nsiappshell->run() event loop) to run gecko events on the main application thread.
...And 2 more matches
nsITextInputProcessor
nsidomwindowutils has provided the
methods which dispatched keyboard events and composition events almost directly.
...for solving that issue,
methods of this interface have been designed for performing a key operation or representing a change of composition state.
...
methods appendclausetopendingcomposition() appends a clause to the pending composition string which is set by setpendingcompositionstring().
...And 2 more matches
nsITimer
nsitimer instances must be initialized by calling one of the initialization
methods.
... you may also re-initialize (using one of the initialization
methods) an existing instance to avoid the overhead of destroying and creating a timer.
...call one of the init()
methods to restart a one-shot timer.
...And 2 more matches
nsITreeView
inherits from: nsisupports last changed in gecko 22 (firefox 22 / thunderbird 22 / seamonkey 2.19) implementing a nsitreeview in lieu of dom
methods for tree creation can improve performance dramatically, and removes the need to make changes to the tree manually when changes to the database occur.
... note: renamed from progressundetermined in gecko 1.8 progress_none 3 note: renamed from progressnone in gecko 1.8 drop_before -1 drop_on 0 drop_after 1 indropbefore 0 obsolete since gecko 1.8 indropon 1 obsolete since gecko 1.8 indropafter 2 obsolete since gecko 1.8
methods candrop()
methods used by the drag feedback code to determine if a drag is allowable at the current location.
... getparentindex()
methods used by the tree to draw thread lines in the tree.
...And 2 more matches
Xptcall Porting Guide
overview xptcall is a library that supports both invoking
methods on arbitrary xpcom objects and implementing classes whose objects can impersonate any xpcom interface.
...#include "xptcstubsdecl.inc" // the following
methods must be provided by inheritor of this class.
...hodindex, const nsxptmethodinfo* info, nsxptcminivariant* params) = 0; }; code that wishes to make use of this stubs functionality (such as xpconnect) implement a class which inherits from nsxptcstubbase and implements the getinterfaceinfo and callmethod to let the platform specific code know how to get interface information and how to dispatch
methods once their parameters have been pulled out of the platform specific calling frame.
...And 2 more matches
Gecko Plugin API Reference - Plugins
an http server uploading files to an ftp server sending mail memory allocating and freeing memory mac os flushing memory (mac os only) version, ui, and status information displaying a status line message getting agent information getting the current version finding out if a feature exists reloading a plug-in plug-in side plug-in api this chapter describes
methods in the plug-in api that are available from the plug-in object.
... the names of all of these
methods begin with npp_ to indicate that they are implemented by the plug-in and called by the browser.
... npp_destroy npp_destroystream npp_getvalue np_getvalue npp_handleevent np_initialize npp_new npp_newstream npp_print npp_setvalue npp_setwindow np_shutdown npp_streamasfile npp_urlnotify npp_write npp_writeready browser side plug-in api this chapter describes
methods in the plug-in api that are available from the browser.
...And 2 more matches
Attr - Web APIs
in most dom
methods, you will directly retrieve the attribute as a string (e.g., element.getattribute()), but certain functions (e.g., element.getattributenode()) or means of iterating return attr types.
...oke="#d4dde4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">attr</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: starting in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4), a number of deprecated properties and
methods output warning messages to the console.
...see deprecated properties and
methods for a complete list.
...And 2 more matches
AudioListener - Web APIs
methods audiolistener.setorientation() sets the orientation of the listener.
... note: although these
methods are deprecated they are currently the only way to set the orientation and position in firefox, internet explorer and safari.
... because of these issues, these properties and
methods have been removed.
...And 2 more matches
Document - Web APIs
t x="266" y="1" width="80" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">document</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} the document interface describes the common properties and
methods for any kind of document.
...
methods this interface also inherits from the node and eventtarget interfaces.
...
methods included from documentorshadowroot the document interface includes the following
methods defined on the documentorshadowroot mixin.
...And 2 more matches
Examples of web and XML development using the DOM - Web APIs
</head> <body> <div id="d1"> </div> <form action=""> <p> <button type="button" onclick="cstyles();">getcomputedstyle</button> height<input id="t1" type="text" value="1" /> max-width<input id="t2" type="text" value="2" /> bg-color<input id="t3" type="text" value="3" /> </p> </form> </body> </html> example 7: displaying event object properties this example uses dom
methods to display all the properties of the window.onload event object and their values in a table.
...(row, row.rowindex); addcell(row, p); addcell(row, e[p]); } document.body.appendchild(table); } window.onload = function(event){ showeventproperties(event); } </script> </head> <body> <h1>properties of the dom <span id="eventtype"></span> event object</h1> </body> </html> example 8: using the dom table interface the dom htmltableelement interface provides some convenience
methods for creating and manipulating tables.
... two frequently used
methods are htmltableelement.insertrow and tablerow.insertcell.
...And 2 more matches
Introduction to the DOM - Web APIs
alert(paragraphs[0].nodename); all of the properties,
methods, and events available for manipulating and creating web pages are organized into objects (for example, the document object that represents the document itself, the table object that implements the special htmltableelement dom interface for accessing html tables, and so forth).
...your dom programming may be something as simple as the following, which displays an alert message by using the alert() function from the window object, or it may use more sophisticated dom
methods to actually create new content, as in the longer example below.
...the table object, for example, implements a specialized htmltableelement interface, which includes such
methods as createcaption and insertrow.
...And 2 more matches
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
introduction this article is an overview of some powerful, fundamental dom level 1
methods and how to use them from javascript.
...the dom
methods presented here are not specific to html; they also apply to xml.
... the dom
methods presented here are part of the document object model (core) level 1 specification.
...And 2 more matches
Element.classList - Web APIs
the domtokenlist itself is read-only, although you can modify it using the add() and remove()
methods.
...classlist.add("foo", "bar", "baz"); div.classlist.remove("foo", "bar", "baz"); // add or remove multiple classes using spread syntax const cls = ["foo", "bar"]; div.classlist.add(...cls); div.classlist.remove(...cls); // replace class "foo" with class "bar" div.classlist.replace("foo", "bar"); versions of firefox before 26 do not implement the use of several arguments in the add/remove/toggle
methods.
... the following polyfill for both classlist and domtokenlist ensures full compliance (coverage) for all standard
methods and properties of element.prototype.classlist for ie10-ie11 browsers plus nearly compliant behavior for ie 6-9.
...And 2 more matches
Fullscreen API - Web APIs
the fullscreen api adds
methods to present a specific element (and its descendants) in full-screen mode, and to exit full-screen mode once it is no longer needed.
...instead, it augments several other interfaces to add the
methods, properties, and event handlers needed to provide full-screen functionality.
...
methods the fullscreen api adds
methods to the document and element interfaces to allow turning off and on full-screen mode.
...And 2 more matches
HTMLTextAreaElement - Web APIs
the htmltextareaelement interface provides special properties and
methods for manipulating the layout and presentation of <textarea> elements.
...
methods blur() removes focus from the control; keystrokes will subsequently go nowhere.
... the two
methods blur() and focus() are inherited from htmlelement from html5 on, but were defined on htmltextareaelement in dom level 2 html and earlier specifications.
...And 2 more matches
HTML Drag and Drop API - Web APIs
datatransfer objects also have
methods to add or remove items to the drag's data.
...the datatransferitem object also has
methods to get the drag item's data.
...the list object has
methods to add a drag item to the list, remove a drag item from the list, and clear the list of all drag items.
...And 2 more matches
Headers - Web APIs
you can add to this using
methods like append() (see examples.) in all
methods of this interface, header names are matched by case-insensitive byte sequence.
...this affects whether the set(), delete(), and append()
methods will mutate the header.
...
methods headers.append() appends a new value onto an existing header inside a headers object, or adds the header if it does not already exist.
...And 2 more matches
Media Capabilities API - Web APIs
to test support, smoothness and power efficiency of a video or audio file, you define the media configuration you want to test, and then pass the audio or video configuration as the parameter of the mediacapabilities interface's encodinginfo() and decodinginfo()
methods.
... mediacapabilitiesinfo the interface of the promise returned by the mediacapabilities's encodinginfo() and decodinginfo()
methods; returning whether the media configuration tested is supported, smooth, and powerefficient.
... media capabilities dictionaries mediaconfiguration describes how video and audio configuration dictionaries must be configured, or defined, to be passed as a parameter of the mediacapabilities.encodinginfo() and mediacapabilities.decodinginfo()
methods.
...And 2 more matches
PaymentRequest.canMakePayment() - Web APIs
you can call this before calling show() to provide a streamlined user experience when the user's browser can't handle any of the payment
methods you accept.
... for instance, you might call canmakepayment() to determine if the browser will let the user pay using payment request api, and if it won't, you could fall back to another payment method, or offer a list of
methods that aren't handled by payment request api (or even provide instructions for paying by mail or by phone).
...}) canpay = await paymentrequest.canmakepayment(); returns a promise to a boolean that resolves to true if the user agent supports any of the payment
methods supplied when instantiating the request using the paymentrequest constructor.
...And 2 more matches
Performance - Web APIs
methods the performance interface doesn't inherit any
methods.
... recommendation defines getentries(), getentriesbytype() and getentriesbyname()
methods.
... candidate recommendation defines clearresourcetimings() and setresourcetimingbuffersize()
methods and the onresourcetimingbufferfull property.
...And 2 more matches
Using Performance Timeline - Web APIs
performance extensions performance timeline extends the performance object with three
methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified filter criteria.
... the following example show the usage of these
methods getentries(), getentriesbyname() and getentriesbytype().
...performance.mark not supported"); return; } // create some performance entries via the mark() and measure()
methods performance.mark("begin"); do_work(50000); performance.mark("end"); do_work(50000); performance.measure("measure1", "begin", "end"); // use getentries() to iterate all entries var p = performance.getentries(); for (var i=0; i < p.length; i++) { log("all entry[" + i + "]"); print_perf_entry(p[i]); } // use getentries(name, entrytype) to get specific entries p = perf...
...And 2 more matches
User Timing API - Web APIs
this document provides an overview of the mark and measure performance event types including the four user timing
methods that extend the performance interface.
... for more details and example code regarding these two performance event types and the
methods, see using the user timing api.
... retrieving performance marks the performance interface has three
methods that can be used to retrieve a mark: performance.getentries() returns all performance entries in the performance timeline.
...And 2 more matches
WebGLRenderingContext.uniform[1234][fi][v]() - Web APIs
the webglrenderingcontext.uniform[1234][fi][v]()
methods of the webgl api specify values of uniform variables.
...possible types: a floating point number for floating point values (
methods with "f").
... a sequence of floating point numbers (for example a float32array or an array of numbers) for floating point vector
methods (
methods with "fv").
...And 2 more matches
Web Authentication API - Web APIs
this resolves significant security problems related to phishing, data breaches, and attacks against sms texts or other second-factor authentication
methods while at the same time significantly increasing ease of use (since users don't have to manage dozens of increasingly complicated passwords).
...similar to the other forms of the credential management api, the web authentication api has two basic
methods that correspond to register and login: navigator.credentials.create() - when used with the publickey option, creates new credentials, either for registering a new account or for associating a new asymmetric key pair credentials with an existing account.
... in order to understand how the create() and get()
methods fit into the bigger picture, it is important to understand that they sit between two components that are outside the browser: server - the web authentication api is intended to register new credentials on a server (also referred to as a service or a relying party) and later use those same credentials on that same server to authenticate a user.
...And 2 more matches
Getting Started - Developer guides
then, mozilla, safari, and other browsers followed, implementing an xmlhttprequest object that supported the
methods and properties of microsoft's original activex object.
...}; next, after declaring what happens when you receive the response, you need to actually make the request, by calling the open() and send()
methods of the http request object, like this: httprequest.open('get', 'http://www.example.org/some.file', true); httprequest.send(); the first parameter of the call to open() is the http request method – get, post, head, or another method supported by your server.
...for more information on the possible http request
methods, check the w3c specs.
...And 2 more matches
Redirections in HTTP - HTTP
code text method handling typical use case 301 moved permanently get
methods unchanged.
...308 was created to remove the ambiguity of the behavior when using non-get
methods.
... code text method handling typical use case 302 found get
methods unchanged.
...And 2 more matches
Working with objects - JavaScript
this chapter describes how to use objects, properties, functions, and
methods, and how to create your own objects.
... to define an object type, create a function for the object type that specifies its name, properties, and
methods.
... defining
methods a method is a function associated with an object, or, simply put, a method is a property of an object that is a function.
...And 2 more matches
Private class fields - JavaScript
the limitation of static variables being called by only static
methods still holds.
... class classwithprivatefield { #privatefield constructor() { this.#privatefield = 42 this.#randomfield = 666 // syntax error } } const instance = new classwithprivatefield() instance.#privatefield === 42 // syntax error private
methods private static
methods like their public equivalent, private static
methods are called on the class itself, not instances of the class.
... private static
methods may be generator, async, and async generator functions.
...And 2 more matches
Array - JavaScript
description arrays are list-like objects whose prototype has
methods to perform traversal and mutation operations.
... several of the built-in array
methods (e.g., join(), slice(), indexof(), etc.) take into account the value of an array's length property when they're called.
... other
methods (e.g., push(), splice(), etc.) also result in updates to an array's length property.
...And 2 more matches
Object - JavaScript
description nearly all objects in javascript are instances of object; a typical object inherits properties (including
methods) from object.prototype, although these properties may be shadowed (a.k.a.
... changes to the object prototype object are seen by all objects through prototype chaining, unless the properties and
methods subject to those changes are overridden further along the prototype chain.
... static
methods object.assign() copies the values of all enumerable own properties from one or more source objects to a target object.
...And 2 more matches
context-menu - Archive of obsolete content
({ label: "edit image", context: cm.selectorcontext("img"), contentscript: 'self.on("click", function (node, data) {' + ' self.postmessage(node.src);' + '});', onmessage: function (imgsrc) { openimageeditor(imgsrc); } }); updating a menu item's label each menu item must be created with a label, but you can change its label later using a couple of
methods.
...
methods destroy() permanently removes the item from its parent menu and frees its resources.
...
methods additem(item) appends a menu item to the end of the menu.
...
methods destroy() permanently removes the separator from its parent menu and frees its resources.
File I/O - Archive of obsolete content
an exception is thrown only when
methods that require the file to exist are called, e.g., isdirectory(), moveto(), and so on.
...you can tell files from folders by calling nsifile.isdirectory() and nsifile.isfile()
methods on each entry.
... createinstance(components.interfaces.nsifileoutputstream); stream.init(afile, 0x04 | 0x08 | 0x20, 0600, 0); // readwrite, create, truncate stream.write(pngbinary, pngbinary.length); if (stream instanceof components.interfaces.nsisafeoutputstream) { stream.finish(); } else { stream.close(); } more there are more
methods and properties on nsifile and nsilocalfile interfaces; please refer to their documentation for more details.
... those
methods/properties are mostly self-explanatory, so we haven't included examples of using them here.
JS XPCOM - Archive of obsolete content
an interface is simply a list of constants and
methods that can be called on the object, an example is nsifile.
...g/file/local;1", "nsifile", "initwithpath"); var file = new nsfile(filepath); they can also be created and initialized manually: var file = components.classes["@mozilla.org/file/local;1"] .createinstance(components.interfaces.nsifile); file.initwithpath(filepath); this creates a new instance of the object with contract id @mozilla.org/file/local;1 and allows you to call
methods from the nsifile interface on it.
... getting an xpcom service var preferences = components.classes["@mozilla.org/preferences-service;1"] .getservice(components.interfaces.nsiprefservice); you can then call any
methods in the nsiprefservice interface on the preferences object.
...with the preferences service from the previous example we can do the following: var preferences = preferences.queryinterface(components.interfaces.nsiprefbranch2); this allows you to use the
methods in the nsiprefbranch2 interface.
Appendix D: Loading Scripts - Archive of obsolete content
flexibility: script tags provide a means to specify the character set and javascript version of the scripts to be loaded, which many other
methods do not.
... in addition to compile time, reading files synchronously from disk has its own overhead, and xmlhttprequests have significantly more overhead than native loading
methods.
...because these scripts are loaded from a bytecode cache, and the same scripts are loaded only once per session no matter how many times they are imported, this is one of the most performant
methods of script loading.
... safety: as workers have no access to objects which might cause a crash or deadlock when executed re-entrantly or by spinning the event loop, there are significant safety advantages over other
methods of asynchronous execution.
Appendix F: Monitoring DOM changes - Archive of obsolete content
most of these
methods are specific to a particular site or codebase.
...these requests can be tracked from chrome code using a variety of
methods, including web progress listeners, http observers, and content policies.
... while these are not exceptionally efficient (they run for every http request, and considerably more often for some
methods), they work very well for certain applications pure css pure css can be more powerful than most people suspect.
... monkey patching dom
methods when you are interested in changes to particular nodes, sometimes the best way is to wrap the dom
methods of those elements, as in the monkey patching section above.
JXON - Archive of obsolete content
this.keylength = nlength; this.attributeslength = nattrlen; // this.domnode = oxmlparent; */ /* object.freeze(this); */ } /* * optional
methods...
... usage the obtained non-native jxon global object will have two
methods: method description jxon.build(document[, verbosity[, freeze[, nesteattributes]]]) returns a javascript object based on the given xml document.
... these
methods are inverses of each other.
...as above, optional properties and
methods (commented in the example) of the first algorithm (verbosity level: 3) are not included.
MMgc - Archive of obsolete content
there are a few
methods that you may need to call directly, such as alloc and free.
... gc::alloc, gc::free the alloc and free
methods are garbage-collected analogs for malloc and free.
...our marking algorithm is a conservative marking algorithm that makes marking automatic, there are no mark()
methods the gc engine needs to call, marking is simply a tight loop that processes a queue.
...#2 can be found by examining all non-const
methods of gc objects (and making all fields private, something the avm+ code base does already).
Embedding Mozilla in a Java Application using JavaXPCOM - Archive of obsolete content
this library provides the interfaces necessary to bootstrap mozilla and call xpcom
methods.
... to start embedding, we use the
methods provided by the mozilla singleton class.
...the mozilla class provides several
methods to facilitate this, such as getservicemanager, getcomponentmanager, and newlocalfile.
... in addition to retrieving and calling
methods on xpcom objects, javaxpcom allows the java application to pass java class objects to xpcom
methods.
JavaScript Client API - Archive of obsolete content
in this case, it is highly recommended to use the utils.makeguid() helper to generate new guids: let newguid = utils.makeguid(); your store object must implement the following
methods: itemexists(id) createrecord(id, collection) changeitemid(oldid, newid) getallids() wipe() create(record) update(record) remove(record) you may also find it useful to override other
methods of the base implementation, for example applyincomingbatch if the underlying storage for your data supports batch operations.
...therefore, it's the responsibility of this method to define the guid -> item mapping, and to store it for later reference by other
methods.
... the next three
methods are called by the sync algorithm when it determines that the state of the local application needs to be changed to keep it up-to-date with the user's remote activities.
... the sync algorithm will call your store object with a record to be created, updated, or removed, and it is your store object's responsibility to apply this change to the local application using whatever
methods are neccessary.
Adding Properties to XBL-defined Elements - Archive of obsolete content
you can also add
methods that can be called.
... that way, all you need is to get a reference to the element (using document.getelementbyid or a similar function) and then get or set the additional properties and call the
methods on it.
...
methods are functions which may be executed.
... the next section shows how to add
methods to xbl-defined elements.
Commands - Archive of obsolete content
the command dispatcher contains
methods for retrieving controllers for commands and for retrieving and modifying the focus.
...a controller is expected to implement four
methods, which are listed below: supportscommand (command) this method should return true if the controller supports a command.
... docommand : function(cmd){ list.removeitemat(list.selectedindex); }, onevent : function(evt){ } }; list.controllers.appendcontroller(listcontroller); } </script> <listbox id="thelist"> <listitem label="ocean"/> <listitem label="desert"/> <listitem label="jungle"/> <listitem label="swamp"/> </listbox> </window> the controller (listcontroller) implements the four
methods described above.
...nsicontrollers has a number of
methods that may be used to manipulate the controllers.
arrowscrollbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a box which provides scroll arrows along its edges for scrolling through the contents of the box.
... attributes clicktoscroll, disabled, smoothscroll, tabindex properties disabled, scrollboxobject, scrollincrement, smoothscroll, tabindex
methods ensureelementisvisible, scrollbyindex, scrollbypixels examples <arrowscrollbox orient="vertical" flex="1"> <button label="red"/> <button label="blue"/> <button label="green"/> <button label="yellow"/> <button label="orange"/> <button label="silver"/> <button label="lavender"/> <button label="gold"/> <button label="turquoise"/> <button label="peach"/> <button label="mar...
...
methods ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the displayed items are scrolled so that it is.
... inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattri...
preference - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] declares a preference that may be adjusted in a prefpane.
... attributes disabled, instantapply, inverted, name, onchange, readonly, tabindex, type properties defaultvalue, disabled, hasuservalue, inverted, locked, name, preferences, readonly, tabindex, type, value, valuefrompreferences
methods reset examples <preferences> <preference id="pref_id" name="preference.name" type="int"/> </preferences> see preferences system for a complete example.
...
methods reset() return type: no return value resets the preference to its default value.
... inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattri...
preferences - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] overview <preferences> is a container for <preference> elements.
... note: it's not clear which of the following
methods and properties are public.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods void firechangedevent(in domelement preference); creates and dispatches a changed (non-bubbling) event to the specified preference element.
... inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(...
prefpane - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single preference panel in a prefwindow.
... attributes helpuri, image, label, onpaneload, selected, src properties image, label, preferenceelements, preferences, selected, src examples
methods preferenceforelement <prefpane id="panegeneral" label="general" src="chrome://path/to/paneoverlay.xul"/> or <prefpane id="panegeneral" label="general" onpaneload="ongeneralpaneload(event);"> <preferences> <preference id="pref_one" name="extensions.myextension.one" type="bool"/> ...
...
methods domelement getpreferenceelement(in domelement startelement) preferenceforelement( uielement ) return type: preference element returns the preference element to which a user interface element is attached.
... inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattri...
richlistbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used to create a list of listitems (richlistitems), similar to a listbox, but is designed to be used when the items do not contain simple text content.
... attributes disabled, disablekeynavigation, preference, seltype, suppressonselect, tabindex, value properties accessibletype, currentindex, currentitem, disabled, disablekeynavigation, itemcount, scrollboxobject, selectedcount, selectedindex, selecteditem, selecteditems, seltype, suppressonselect, tabindex, value
methods additemtoselection, appenditem, clearselection, ensureelementisvisible, ensureindexisvisible, getindexoffirstvisiblerow, getindexofitem, getitematindex, getnumberofvisiblerows, getrowcount, getselecteditem, insertitemat, invertselection, movebyoffset, removeitemat, removeitemfromselection, scrolltoindex, selectall, selectitem, selectitemrange, timedselect, toggleitemselection examples <richli...
... suppressonselect type: boolean if this attribute is not specified, a select event is fired whenever an item is selected, either by the user or by calling one of the select
methods.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
stringbundle - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element which can be used to load localized resources from property files.
... the "src" attribute accepts only absolute chrome:// urls (see bugs 133698, 26291) attributes src properties applocale , src, stringbundle, strings
methods getformattedstring, getstring examples (example needed) attributes src type: uri the uri of the property file that contains the localized strings.
...
methods getformattedstring( key, strarray ) return type: string looks up the format string for the given key name in the string bundle and returns a formatted copy where each occurrence of %s (uppercase) is replaced by each successive element in the supplied array.
... inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens()...
tabbrowser - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used for holding a set of read-only views of web documents.
...eupdown, onbookmarkgroup, onnewtab, tabmodalpromptshowing properties browsers, cangoback, cangoforward, contentdocument, contenttitle, contentvieweredit, contentviewerfile, contentwindow, currenturi, docshell, documentcharsetinfo, homepage, markupdocumentviewer, securityui, selectedbrowser, selectedtab, sessionhistory, tabcontainer, tabs, visibletabs, webbrowserfind, webnavigation, webprogress
methods addprogresslistener, addtab, addtabsprogresslistener,appendgroup, getbrowseratindex, getbrowserindexfordocument, getbrowserfordocument, getbrowserfortab, geticon, getnotificationbox, gettabforbrowser, gettabmodalpromptbox, goback, gobackgroup, goforward, goforwardgroup, gohome, gotoindex, loadgroup, loadonetab, loadtabs, loaduri, loaduriwithflags, movetabto, pintab, reload, reloadalltabs, reload...
...most of its
methods are callable directly on the element itself, such as goback and goforward.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupp...
textbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an input field where the user can enter text.
..., size, spellcheck, tabindex, timeout, type, value, wrap, wraparound properties accessibletype, clickselectsall, decimalplaces, decimalsymbol, defaultvalue, disabled, editor, emptytext, increment, inputfield, label, max, maxlength, min, placeholder, readonly, searchbutton, selectionend, selectionstart, size, spinbuttons, tabindex, textlength, timeout, type, value, valuenumber, wraparound
methods decrease, increase, reset, select, setselectionrange style classes plain examples <vbox> <label control="your-name" value="enter your name:"/> <textbox id="your-name" value="john"/> </vbox> attributes cols type: integer for multiline textboxes, the number of columns to display.
...
methods decrease() return type: no return value decreases the value of the scale or number box by the increment.
... inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattri...
toolbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container which typically contains a row of buttons.
... attributes autohide, currentset, customindex, customizable, defaultset, grippyhidden, grippytooltiptext, height, iconsize, mode, toolbarname properties accessibletype, currentset, firstpermanentchild, lastpermanentchild, toolbarname, toolboxid
methods insertitem style classes chromeclass-toolbar examples <toolbox> <toolbar id="nav-toolbar"> <toolbarbutton id="nav-users" accesskey="u" label="users"/> <toolbarbutton id="nav-groups" accesskey="p" label="groups"/> <toolbarbutton id="nav-events" accesskey="e" label="events" disabled="true"/> </toolbar> </toolbox> attributes autohide type: boolean when set to tr...
...
methods insertitem( id, beforenode, wrapper, beforepermanent ) not in seamonkey 1.x return type: element add an item with the given id to the toolbar.
... inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, has...
NPN_Enumerate - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary gets the names of the properties and
methods of the specified npobject.
... npobj the object of which the properties and
methods are to be retrieved.
... identifiers a pointer to receive a pointer to the start of an array of string identifiers of the names of the properties and
methods of npobj.
... returns true if the names of the properties and
methods were successfully retrieved, otherwise false.
Browser Detection and Cross Browser Support - Archive of obsolete content
use non-script based detection
methods where possible older browsers have many limitations which result in their ignoring more advanced features.
... html provides several
methods of detecting support for various features such as support for scripting and frames.
... how (and when) to use the navigator object when detecting gecko unless you specifically need to detect if gecko is being used, do not use these
methods.
... these
methods should only be used in circumstances which can not be handled by using object feature detection such as when specific versions of gecko must be excluded for security reasons.
Processing XML with E4X - Archive of obsolete content
} working with xml objects xml objects provide a number of
methods for inspecting and updating their contents.
... objects representing xml elements provide a number of useful
methods, some of which are illustrated below: todo: add all of the
methods to the javascript reference, link from here alert(person.name.text()) // bob smith var xml = person.name.toxmlstring(); // a string containing xml var personcopy = person.copy(); // a deep copy of the xml object var child = person.child(1); // the second child node; in this case the <likes> element working with xmllists in ...
...despite these similarities to regular arrays, xmllist does not support array
methods such as foreach, and array generics such as array.foreach() are not compatible with xmllist objects.
... it is possible to create an xmllist using xml literal syntax without needing to create a well-formed xml document, using the following syntax: var xmllist = <> <lang>javascript</lang> <lang>python</lang> </>; the += operator can be used to append new elements to an xmllist within a document: languages.lang += <lang>ruby</lang>; note that unlike node lists returned by regular dom
methods, xmllists are static and are not automatically updated to reflect changes in the dom.
LiveConnect - Archive of obsolete content
liveconnect provides javascript with the ability to call
methods of java classes and vice-versa using the existing java infrastructure.
... liveconnect reference the java classes used for liveconnect, along with their constructors and
methods.
... liveconnect use by applets is enabled via the use of the "mayscript" attribute in applet tags on an html page, following which the applet may refer to classes in the netscape.javascript package to access javascript objects, and scripts may directly call applet
methods (using the syntax document.applets.name.methodname()).
... old liveconnect documents, broken links: java method overloading and liveconnect 3 the technique that liveconnect uses to invoke overloaded java
methods from javascript.
JavaArray - Archive of obsolete content
in javascript 1.4 and later, the
methods of java.lang.object are inherited by javaarray.
... backward compatibility javascript 1.3 and earlier the
methods of java.lang.object are not inherited by javaarray.
...
methods tostring: in javascript 1.4, this method is overridden by the inherited method java.lang.object.tostring.
... in javascript 1.4 and later, javaarray also inherits
methods from the java array superclass, java.lang.object.
JavaObject - Archive of obsolete content
methods inherits public
methods from the java class of which it is an instance.
... the javaobject also inherits
methods from java.lang.object and any other superclass.
...script the following code creates the javaobject thestring, which is an instance of the class java.lang.string: var thestring = new packages.java.lang.string("hello, world"); because the string class is in the java package, you can also use the java synonym and omit the packages keyword when you instantiate the class: var thestring = new java.lang.string("hello, world"); example: accessing
methods of a java object because the javaobject thestring is an instance of java.lang.string, it inherits all the public
methods of java.lang.string.
... var thestring = new java.lang.string("hello, world"); thestring.startswith("hello"); // returns true example: accessing inherited
methods because getclass is a method of object, and java.lang.string extends object, the string class inherits the getclass method.
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
previous overview: asynchronous next this tutorial looks at the traditional
methods javascript has available for running code asychronously after a set time period has elapsed, or at a regular interval (e.g.
... let's talk a little bit more about how the requestanimationframe() method differs from the other
methods used earlier.
...(note that the function name starts with "cancel", not "clear" as with the "set..."
methods.) just pass it the value returned by the requestanimationframe() call to cancel, which you stored in the variable raf: cancelanimationframe(raf); active learning: starting and stopping our spinner in this exercise, we'd like you to test out the cancelanimationframe() method by taking our previous example and updating it, adding an event listener to start and stop the spinner when the mouse i...
...you'll find these
methods useful in a lot of situations, but take care not to overuse them!
Introduction to web APIs - Learn web development
they are based on objects your code interacts with apis using one or more javascript objects, which serve as containers for the data the api uses (contained in object properties), and the functionality the api makes available (contained in object
methods).
...the most obvious ones are: audiocontext, which represents an audio graph that can be used to manipulate audio playing inside the browser, and has a number of
methods and properties available to manipulate that audio.
...ng, stop it } else if (this.getattribute('class') === 'playing') { audioelement.pause(); this.setattribute('class', 'paused'); this.textcontent = 'play'; } }); // if track ends audioelement.addeventlistener('ended', function() { playbtn.setattribute('class', 'paused'); playbtn.textcontent = 'play'; }); note: some of you may notice that the play() and pause()
methods being used to play and pause the track are not part of the web audio api; they are part of the htmlmediaelement api, which is different but closely-related.
...its context object is created by getting a reference to the <canvas> element you want to draw on, and then calling its htmlcanvaselement.getcontext() method: const canvas = document.queryselector('canvas'); const ctx = canvas.getcontext('2d'); anything that we want to do to the canvas is then achieved by calling properties and
methods of the context object (which is an instance of canvasrenderingcontext2d), for example: ball.prototype.draw = function() { ctx.beginpath(); ctx.fillstyle = this.color; ctx.arc(this.x, this.y, this.size, 0, 2 * math.pi); ctx.fill(); }; note: you can see this code in action in our bouncing balls demo (see it running live also).
mozbrowsershowmodalprompt
the mozbrowsershowmodalprompt event is fired when the content of a browser <iframe> calls the window.alert(), window.confirm(), or window.prompt()
methods.
... message a domstring representing the value passed to the window.alert(), window.confirm(), or window.prompt()
methods within the browser <iframe>'s content.
... returnvalue a domstring representing the return value for the window.prompt()
methods.
... initialvalue a string representing the initial value for the window.prompt()
methods.
HTML parser threading
the nsistreamlistener
methods (onstartrequest, ondataavailable and onstoprequest) are called on the main thread.
...passing data to the parser thread nshtml5streamparser gets some of its
methods called on the main thread and some called on the parser thread.
...these two
methods along with timerflush (discussed later) are the entry points from the parser thread event loop into nshtml5streamparser.
...nshtml5atom objects are guaranteed to be immutable and to stay alive for the lifetime of the parser instance, so it's safe for the main thread to call their
methods (as is necessary to find the corresponding normal atom).
AddonManager
the majority of the
methods are asynchronous meaning that results are delivered through callbacks passed to the method.
...to do so many
methods of the addonmanager take the add-on types as parameters.
... startup change types these constants represent the lists of types of changes that can occur to add-ons during startup; they're used with the getstartupchanges(), addstartupchange(), and removestartupchange()
methods.
...
methods addstartupchange() adds an add-on change from the add-on changes list.
Memory reporting
methods ...
... size_t mystring::sizeofexcludingthis(mozilla::mallocsizeof amallocsizeof) const { return amallocsizeof(mbuffer); } size_t mystring::sizeofincludingthis(mozilla::mallocsizeof amallocsizeof) const { return amallocsizeof(this) + sizeofexcludingthis(amallocsizeof); } (note that sizeofexcludingthis and sizeofincludingthis aren't overrides of
methods on a global base class that is common to all reporters.
...that said, note that for some classes these
methods may be virtual.) mfbt/memoryreporting.h defines mozilla::mallocsizeof as follows: typedef size_t (*mallocsizeof)(const void* p); functions with this signature measure the size of p by asking the heap allocator how big it is (via moz_malloc_usable_size).
... the override annotations say that d's
methods override the corresponding
methods in b.
NSPR Poll Method
each i/o layer is represented by a prfiledesc structure and the protocol of that layer is implemented by a prio
methods table.
...the poll method is one of the functions in the prio
methods table.
... new_flags = fd->
methods->poll(fd, pr_poll_read, &out_flags); if you are going to call pr_send, pass pr_poll_write as the in_flags argument.
... new_flags = fd->
methods->poll(fd, pr_poll_write, &out_flags); if you are interested in calling both pr_recv and pr_send on the same file descriptor, make two separate calls to the poll method, one with pr_poll_read as in_flags and the other with pr_poll_write as in_flags, so that you know what events at the network transport layer pr_poll_read and pr_poll_write are mapped to, respectively.
Index
34 js::compileoptions jsapi reference, reference, référence(2), spidermonkey some
methods of js::owningcompileoptions and js::compileoptions return the instance itself to allow method chain.
... 231 js_definefunctions jsapi reference, reference, référence(2), spidermonkey js_definefunctions creates zero or more functions and makes them properties (
methods) of a specified object, obj, as if by calling js_definefunction repeatedly.
...once this method has succeeded, it is safe to call js_newruntime and other jsapi
methods.
...clasp is a pointer to an existing class to use for internal
methods, such as finalize.
JS::CompileOptions
methods some
methods of js::owningcompileoptions and js::compileoptions return the instance itself to allow method chain.
...
methods of js::readonlycompileoptions method description bool mutederrors() const determines if errors are muted.
...
methods of js::owningcompileoptions method description jsobject *element() const returns the dom element to which this source code belongs, if any, or null if it belongs to no dom element.
...
methods of js::compileoptions method description jsobject *element() const same as js::owningcompileoptions.
JS::Value
the different representations are visible using the separate int32/double
methods but do not affect observable semantics (ignoring performance).
...(note that both -0 and +0 are allowed, and the latter may sometimes be stored using the int32_t representation.) js::value further provides these
methods combining various aspects of the above
methods: js::objectornullvalue(jsobject*) returns an object value corresponding to the given non-null pointer, or a null value if the pointer is null.
...the now-deprecated jsval
methods allowed jsval_to_object(val) when jsval_is_null(val), but this was a source of constant bugs.
...the old jsval_is_*
methods, jsval_* constants and *_to_jsval
methods, and jsval_to_*
methods are also deprecated; uses of each should be replaced with use of the corresponding val.is*(), *value(), and val.to*()
methods.
JSAutoByteString
methods method description void initbytes(char *bytes) take ownership of the given byte array.
...you should call this before calling encode*
methods or initbytes method if a string is already owned, otherwise the string will never be freed.
...you can call some
methods to take ownership of other string.
... note that the js_encodestring call in constructor and some encode*
methods may fail and get null.
JSFastNative
apis such as js_initclass and js_definefunctions can create custom
methods that are implemented as c/c++ functions of this type, instead of jsnative.
... native
methods must not call js_callee after calling js_set_rval.
... native
methods must not call js_this after calling js_set_rval.
... native
methods must not call js_this_object after calling js_set_rval.
Places utilities for JavaScript
placesflavors generic_view_drop_types
methods createfixeduri nsiuri createfixeduri(string aspec) takes in a spec and returns a valid uri based on it using the nsiurifixup service.
... bookmark dialog
methods to show the bookmarkproperties dialog in its various modes.
... the showminimaladd
methods open the dialog by its alternative uri.
... thus they persist the dialog dimensions separately from the showadd
methods.
Using the Places annotation service
most
methods in the service are duplicated with one method labeled as a 'page annotation' taking an nsiuri and the others labeled as an 'item annotation' and taking the id of an item in the places database.
... the getter functions return only the value of the annotation (with the exception of the c++ getpageannotationbinary and getitemannotationbinary
methods which return the mimetype as well).
...to add or remove an observer use the
methods: addobserver(aobserver); removeobserver(aobserver); where aobserver is an object implementing the nsiannotationobserver interface.
... the objects must implement four
methods, which are called when an annotation is set/removed on a uri or item respectively: onpageannotationset(auri, aname); onitemannotationset(aitemid, aname); onpageannotationremoved(auri, aname); onitemannotationremoved(aitemid, aname); var observer = { onpageannotationset : function(auri, aname) { }, onitemannotationset : function(aitemid, aname) { }, onpageannotationremoved : function(auri, aname) { }, onitemannotationremoved: function(aitemid, aname) { } } annotationservice.addobserver(observer); } ...
Bundling multiple binary components
possible solutions this article covers two possible ways to make binary components support multiple version of gecko: dynamic method loading stub loader dynamic method loading the idea with this approach is to figure out all the
methods imported from gecko and dynamically load the
methods.
... create small wrappers for calling the
methods, as you may need to thunk parameters depending on how much has changed between gecko versions.
... this approach uses only one binary for each platform (win/mac/linux) but creates complexity in the binaries - loading the
methods and creating the wrappers.
... the costs get higher if you have many
methods that need to be loaded.
Packaging WebLock
the installation script for the weblock component can also be used to register the component with the browser into which it is installed (see registration
methods in xpcom for more information on registration).
... javascript apis from the xpinstall install object download the jar in which the installable files appear and call registration
methods that tell mozilla about the new component and the ui it uses to access the weblock component.
...once triggered (see the weblock trigger script), the installation script: downloads the weblock component and places it in the components directory copies the weblock subdirectory in the mozilla chrome application subdirectory registers both the component and the ui the xpinstall api provides such essential
methods[essential-
methods] as initinstall, registerchrome, addfile, and others.
... note: install-object-
methods the
methods are available on the main install object, which is implied in the script below in the same way that the window object is implied in javascript manipulation of the dom of a web page.
XPCOM Stream Guide
if you have an input stream called nativestream, you can use code like this: var stream = components.classes["@mozilla.org/scriptableinputstream;1"] .createinstance(components.interfaces.nsiscriptableinputstream); stream.init(nativestream); the stream provides .read(count), .available(), and .close()
methods.
... fileutils.jsm provides apis for getting output streams for files, with the .openfileoutputstream(file, modeflags) and .opensafefileoutputstream(file, modeflags)
methods, and for closing those output streams with the .closesafefileoutputstream(inputstream) method.
...(this is particularly true of streams that reach out over a network connection, like http and ftp channels.) stream listeners implement three
methods.
... the context argument will be something passed from whoever invokes the request to the .onstartrequest(), .ondataavailable(), and .onstoprequest()
methods of the listener.
IAccessibleHyperlink
iaccessibleaction.nactions() is one greater than the maximum value for the indices used with the
methods of this interface.
...none of the iaccessibleaction
methods would be implemented on the first level hyperlink objects.
... the second level hyperlink objects would implement the iaccessibleaction
methods.
...method overview [propget] hresult anchor([in] long index, [out] variant anchor ); [propget] hresult anchortarget([in] long index, [out] variant anchortarget ); [propget] hresult endindex([out] long index ); [propget] hresult startindex([out] long index ); [propget] hresult valid([out] boolean valid );
methods anchor() returns an object that represents the link anchor, as appropriate for the link at the specified index.
nsIChannel
methods asyncopen() asynchronously open this channel.
...the stream listener's
methods are called on the thread that calls asyncopen and are not called until after asyncopen returns.
... if the nsirequest object passed to the stream listener's
methods is not this channel, an appropriate onchannelredirect notification needs to be sent to the notification callbacks before onstartrequest is called.
... acontext an opaque parameter forwarded to alistener's
methods.
nsIContentPrefCallback2
dom/interfaces/base/nsicontentprefservice2.idlscriptable callback used by nsicontentprefservice2
methods 1.0 66 introduced gecko 20.0 inherits from: nsisupports last changed in gecko 20.0 (firefox 20.0 / thunderbird 20.0 / seamonkey 2.17) method overview void handlecompletion(in unsigned short reason); void handleerror(in nsresult error); void handleresult(in nsicontentpref pref); constants constant value description complete_ok 0 complete_error 1
methods handlecompletion() called when the method finishes.
... this will be called exactly once for each method invocation, and afterward no other callback
methods will be called.
... handleresult() for the retrieval
methods, this is called once for each retrieved preference.
... it is not called for other
methods.
nsIContentPrefService2
domain parameters many
methods of this interface accept a "domain" parameter.
...private-browsing context parameters many
methods also accept a "context" parameter.
...callbacks the
methods of callback objects are always called asynchronously.
... void removeobserverforname(in astring name, in nsicontentprefobserver observer); void set(in astring domain, in astring name, in nsivariant value, in nsiloadcontext context, [optional] in nsicontentprefcallback2 callback); void setglobal(in astring name, in nsivariant value, in nsiloadcontext context, [optional] in nsicontentprefcallback2 callback);
methods addobserverforname() registers an observer that will be notified whenever a preference with the given name is set() or removed.
nsINavHistoryQueryOptions
sortingmode short the sorting annotation to use; see sorting
methods for possible values.
... constants sorting
methods you can ask for the results to be pre-sorted.
...at this time, sorting
methods are not supported; results will always be returned in reverse order of insertion.
...
methods clone() this method creates a new options item with the same parameters of this one.
nsISecurityCheckedComponent
caps/idl/nsisecuritycheckedcomponent.idlscriptable provides
methods that let an xpcom component define custom rules for accessing it from potentially unprivileged code.
... this includes creating instances of arbitrary xpcom objects and calling
methods and setting properties on them.
...method overview string cancallmethod(in nsiidptr iid, in wstring methodname); string cancreatewrapper(in nsiidptr iid); string cangetproperty(in nsiidptr iid, in wstring propertyname); string cansetproperty(in nsiidptr iid, in wstring propertyname);
methods cancallmethod() returns a capability string indicating what permissions are required to call the specified method on the given interface.
... note that if wrapper creation is prevented, the properties and
methods will not be defined on the javascript object, whereas if wrapper creation succeeds but
methods/properties are prevented, the properties and
methods will be visible, not not usable.
nsITaskbarWindowPreview
if the enablecustomdrawing attribute is true, the controller you implement will start receiving calls to its nsitaskbarpreviewcontroller.drawpreview() and nsitaskbarpreviewcontroller.drawthumbnail()
methods, as well as reads of its width, height, and thumbnailaccessratio attributes.
... note: this interface will never invoke the controller's nsitaskbarpreviewcontroller.onclose() or nsitaskbarpreviewcontroller.onactivate()
methods, since handling them may conflict with other internal gecko state management.
...method overview nsitaskbarpreviewbutton getbutton(in unsigned long index); attributes attribute type description enablecustomdrawing boolean if true, the nsitaskbarpreviewcontroller object's nsitaskbarpreviewcontroller.drawpreview() and nsitaskbarpreviewcontroller.drawthumbnail()
methods will be called to draw the preview.
...
methods getbutton() returns the specified button from the preview's toolbar.
Storage
both of these
methods have similar signatures that accept an object as input that receives notifications the execution of the statement(s).
... in c++, the code would look something like this: bool hasmoredata; while (ns_succeeded(statement->executestep(&hasmoredata)) && hasmoredata) { print32 value; rv = statement->getint32(0, &value); ns_ensure_success(rv, rv); } you can obtain other types of data by using the various
methods available on mozistoragevaluearray.
... return transaction.commit(); } collation (sorting) sqlite provides several collation
methods (binary, nocase, and rtrim), but these are all very simple and have no support for various text encodings or the user's locale.
... gecko 1.9.2 added support for several new collation
methods: locale case- and accent-insensitive collation.
Mail event system
methods each event type has a two
methods associated with it: notify*<event> - in the nsifolder interface, and nsimsgmailsession interface.
... future plans the notification system has two duplicate
methods which could be implemented with onitemevent/notifyitemevent: folderloaded , and deleteormovemessagescompleted .
... completed there are some of redundant
methods between the nsimsgmailsession and the nsifolderlistener interfaces.
... nsimsgmailsession also contains a number of other
methods that are completely unrealted to folder notification.
CType
these objects have assorted
methods and properties that let you create objects of these types, find out information about them, and so forth.
... the specific properties and
methods on each object vary depending on the data type represented.
... method overview
methods available on all ctype objects ctype array([n]) string tosource() string tostring() properties properties of all ctype objects these properties are available on all ctype objects.
...
methods available on all ctype objects array() returns a new ctype representing an array of elements of the type on which it was called.
Scripting plugins - Plugins
the threading model for this api is such that all calls through this api are synchronous and calls from a plugin to
methods in this api must come from the thread on which the plugin was initiated, and likewise all calls to
methods in this api by the browser are guaranteed to come from the same thread.
...that means that a script from an origin other than the origin of the page that loaded the plugin is not able to access
methods and properties on the plugin.
...calling npn_getvalue() with either of those new enumerations will return an npobject representing the browser object, and from there, the functions in this api can be used to get and set properties, and to call
methods on those browser objects.
... the new npnvariable enumerations are defined in npapi.h as: npnvwindownpobject = 15, npnvpluginelementnpobject = 16 how to call plugin native
methods the following html code will do the job: <embed type="application/plugin-mimetype"> <script> var embed = document.embeds[0]; embed.nativemethod(); alert(embed.nativeproperty); embed.nativeproperty.anothernativemethod(); </script> the api extensions the api extensions are based on four new structs: npstring npvariant npn_releasevariantvalue npn_getstringidentifier npn_getstringidentifiers npn_getintidentifier npn_identifierisstring npn_utf8fromidentifier...
Index - Firefox Developer Tools
21 debugger.memory the debugger api can help tools observe the debuggee’s memory use in various ways: 22 debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented
methods to inspect and modify its referent.
... the referent’s properties do not appear directly as properties of the debugger.object instance; the debugger can access them only through
methods like debugger.object.prototype.getownpropertydescriptor and debugger.object.prototype.defineproperty, ensuring that the debugger will not inadvertently invoke the referent’s getters and setters.
... 27 debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented
methods to inspect and modify its referent.
... the referent's properties do not appear directly as properties of the debugger.object instance; the debugger can access them only through
methods like debugger.object.prototype.getownpropertydescriptor and debugger.object.prototype.defineproperty, ensuring that the debugger will not inadvertently invoke the referent's getters and setters.
CSS - Web APIs
the css interface holds useful css-related
methods.
... no objects with this interface are implemented: it contains only static
methods and is therefore a utilitarian interface.
...
methods the css interface is a utility interface and no object of this type can be created: only static
methods are defined on it.
... static
methods no inherited static
methods.
CSSStyleSheet - Web APIs
it inherits properties and
methods from its parent, stylesheet.
... this is normally used to access individual rules like this: stylesheet.cssrules[i] // where i = 0..cssrules.length-1 to add or remove items in cssrules, use the cssstylesheet's insertrule() and deleterule()
methods.
...
methods inherits
methods from its parent, stylesheet.
... legacy
methods these
methods are legacy
methods first introduced by microsoft; they should not be used if they can be avoided, but are not in danger of being removed anytime soon.
Applying styles and colors - Web APIs
colors up until now we have only seen
methods of the drawing context.
...we create a canvasgradient object by using one of the following
methods.
...this isn't very obvious from the code because it uses two different css color
methods as a demonstration, but in the first gradient #019f62 = rgba(1,159,98,1).
... we use this method to create a canvaspattern object which is very similar to the gradient
methods we've seen above.
Clipboard - Web APIs
calls to the
methods of the clipboard object will not succeed if the user hasn't granted the needed permissions using the permissions api and the "clipboard-read" or "clipboard-write" permission as appropriate.
... all of the clipboard api
methods operate asynchronously; they return a promise which is resolved once the clipboard access has been completed.
...
methods clipboard is based on the eventtarget interface, and includes its
methods.
... for example, firefox does not yet support the "clipboard-read" and "clipboard-write" permissions, so access to the
methods that access and change the contents of the clipboard are restricted in other ways.
Using Fetch - Web APIs
to extract the json body content from the response, we use the json() method (defined on the body mixin, which is implemented by both the request and response objects.) note: the body mixin also has similar
methods to extract other types of body content; see the body section for more.
...both
methods of creating a copy will fail if the body of the original request or response has already been read, but reading the body of a cloned response or request will not cause it to be marked as read in the original.
... all of the headers
methods throw a typeerror if a header name is used that is not a valid http header name.
...a body is an instance of any of the following types: arraybuffer arraybufferview (uint8array and friends) blob/file string urlsearchparams formdata the body mixin defines the following
methods to extract a body (implemented by both request and response).
HTMLAnchorElement - Web APIs
the htmlanchorelement interface represents hyperlink elements and provides special properties and
methods (beyond those of the regular htmlelement object interface that they inherit from) for manipulating the layout and presentation of such elements.
...
methods inherits
methods from its parent, htmlelement, and implements those from htmlhyperlinkelementutils.
... the blur() and focus()
methods are inherited from htmlelement from html5 on, but were defined on htmlanchorelement in dom level 2 html and earlier specifications.
... recommendation the
methods blur() and focus(), as well as the properties tabindex and accesskey, are now defined on htmlelement.
HTMLCanvasElement - Web APIs
the htmlcanvaselement interface provides properties and
methods for manipulating the layout and presentation of <canvas> elements.
... the htmlcanvaselement interface also inherits the properties and
methods of the htmlelement interface.
...
methods inherits
methods from its parent, htmlelement.
... obsolete
methods htmlcanvaselement.mozgetasfile() returns a file object representing the image contained in the canvas; this file is a memory-based file, with the specified name.
HTMLInputElement - Web APIs
the htmlinputelement interface provides special properties and
methods for manipulating the options, layout, and presentation of <input> elements.
...
methods blur() removes focus from the input element; keystrokes will subsequently go nowhere.
... recommendation technically, the tabindex and accesskey properties, as well as the blur(), click(), and focus()
methods, are now defined on htmlelement.
... the following
methods have been added: checkvalidity(), setcustomvalidity(), setselectionrange(), stepup(), and stepdown().
HTMLMediaElement - Web APIs
the htmlmediaelement interface adds to htmlelement the properties and
methods needed to support basic media-related capabilities that are common to audio and video.
...
methods this interface also inherits
methods from its ancestors htmlelement, element, node, and eventtarget.
... obsolete
methods these
methods are obsolete and should not be used, even if a browser still supports them.
... events inherits
methods from its parent, htmlelement , defined in the globaleventhandlers mixin.
HTMLSelectElement - Web APIs
these elements also share all of the properties and
methods of other html elements via the htmlelement interface.
...
methods this interface inherits the
methods of htmlelement, and of element and node.
... the tabindex property and the blur() and focus()
methods have been moved to htmlelement.
... the
methods item(), nameditem(), checkvalidity() and setcustomvalidity().
HTMLVideoElement - Web APIs
the htmlvideoelement interface provides special properties and
methods for manipulating video objects.
... it also inherits properties and
methods of htmlmediaelement and htmlelement.
...
methods inherits
methods from its parent, htmlmediaelement, and from its ancestor htmlelement.
... events inherits
methods from its parent, htmlmediaelement, and from its ancestor htmlelement.
Dragging and Dropping Multiple Items - Web APIs
caution: all of the
methods and properties with a moz prefix (such as mozsetdataat() are gecko specific interfaces.
... mozilla supports the ability to drag multiple items using some additional non-standard
methods.
... these are
methods that mirror the types property as well as the getdata(), setdata() and cleardata()
methods, however, they take an additional argument that specifies the index of the item to retrieve, modify or remove.
... var types = event.datatransfer.moztypesat(1); dragging non-string data the additional
methods described above are also not restricted to string data; you can specify any type of data.
PaymentRequest.show() - Web APIs
notsupportederror the promise rejects with a notsupportederror if the user agent does not support the payment
methods specified when the paymentrequest constructor was called.
...a, details, options); payrequest.onshippingaddresschange = ev => ev.updatewith(checkaddress(payrequest)); payrequest.onshippingoptionchange = ev => ev.updatewith(checkshipping(payrequest)); const repsonse = await payrequest.show(); await validateresponse(response); } catch(err) { /* handle the error; aborterror usually means a user cancellation */ } } in this code, the
methods checkaddress() and checkshipping(), respectively, check the shipping address and the shipping option changes and supply in response either a paymentdetailsupdate object or a promise to return one; this object contains the fields in the paymentresponse which have been or need to be changed.
... const payment = new paymentrequest(
methods, details, options); try { const response = await payment.show(); // process response here, including sending payment instrument // (e.g., credit card) information to the server.
... const initialdetails = { total: { label: "total", amount: { value: "0", currency: "aud" }, }, }; const request = new paymentrequest(
methods, initialdetails, options); // check if the the user supports the `
methods` if (!await request.canmakepayment()) { return; // no, so use a web form instead.
Performance Timeline - Web APIs
performance extensions the performance timeline api extends the performance interface with three
methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified filter criteria.
... the
methods are: getentries() returns all recorded performance entries or, optionally, the entries based on the specified name, performance type and/or the initiatortype (such as an html element).
...the performance observer entry list interface has the same three getentries*()
methods as the performance interface.
... however, note there is one key difference with these
methods; the performance observer entry list versions are used to retrieve observed performance entries within the observer callback.
PushMessageData - Web APIs
the pushmessagedata interface of the push api provides
methods which let you retrieve the push data sent by a server in various formats.
... unlike the similar
methods in the fetch api, which only allow the method to be invoked once, these
methods can be called multiple times.
... messages received through the push api are sent encrypted by push services and then automatically decrypted by browsers before they are made accessible through the
methods of the pushmessagedata interface.
...
methods pushmessagedata.arraybuffer() extracts the data as an arraybuffer object.
Selection - Web APIs
methods selection.addrange() a range object that will be added to the selection.
... behavior of selection api in terms of editing host focus changes the selection api has a common behavior (i.e., shared between browsers) that governs how focus behavior changes for editing hosts after certain
methods are called.
... note: the selection api
methods may only move focus to an editing host, not to other focusable elements (e.g., <a>).
... the above behavior applies to selections made using the following
methods: selection.collapse() selection.collapsetostart() selection.collapsetoend() selection.extend() selection.selectallchildren() selection.addrange() selection.setbaseandextent() and when the range is modified using the following
methods: range.setstart() range.setend() range.setstartbefore() range.setstartafter() range.setendbefore() range.setendafter() range.collapse() range.selectnode() range.selectnodecontents() glossary other key terms used in this section.
Advanced techniques: Creating and sequencing audio - Web APIs
let's create a simple one so we get used to the
methods we need to create an envelope with the web audio api.
... this is really useful — now we can start to harness the power of the audio param
methods on the gain value.
... we can set a value at a certain time, or we can change it over time with
methods such as audioparam.linearramptovalueattime.
...fer = buffer; let bandpass = audioctx.createbiquadfilter(); bandpass.type = 'bandpass'; bandpass.frequency.value = bandhz; // connect our graph noise.connect(bandpass).connect(audioctx.destination); noise.start(); } "dial up" — loading a sound sample it's straightforward enough to emulate phone dial (dtmf) sounds, by playing a couple of oscillators together using the
methods we've already looked at, however, in this section, we'll load in a sample file instead so we can take a look at what's involved.
Migrating from webkitAudioContext - Web APIs
changes to the creator
methods three of the creator
methods on webkitaudiocontext have been renamed in audiocontext.
... if your code uses either of these names, like in the example below : // old method names var gain = context.creategainnode(); var delay = context.createdelaynode(); var js = context.createjavascriptnode(1024); you can simply rename the
methods to look like this: // new method names var gain = context.creategain(); var delay = context.createdelay(); var js = context.createscriptprocessor(1024); the semantics of these
methods remain the same in the renamed versions.
... changes to starting and stopping nodes in webkitaudiocontext, there are two ways to start and stop audiobuffersourcenode and oscillatornode: the noteon() and noteoff()
methods, and the start() and stop()
methods.
... (audiobuffersourcenode has yet another way of starting output: the notegrainon() method.) the noteon()/notegrainon()/noteoff()
methods were the original way to start/stop output in these nodes, and in the newer versions of the specification, the noteon() and notegrainon()
methods were consolidated into a single start() method, and the noteoff() method was renamed to the stop() method.
Window - Web APIs
that said, even in a tabbed browser, some properties and
methods still apply to the overall window that contains the tab, such as resizeto() and innerheight.
...
methods this interface inherits
methods from the eventtarget interface and implements
methods from windoworworkerglobalscope and eventtarget.
...
methods implemented from elsewhere eventtarget.addeventlistener() register an event handler to a specific event type on the window.
... deprecated
methods window.back() moves back one in the window history.
Box alignment in Multi-column Layout - CSS: Cascading Style Sheets
the box alignment specification details how alignment works in various layout
methods; on this page we explore how box alignment works in the context of multi-column layout.
... as this page aims to detail things which are specific to multi-column layout and box alignment, it should be read in conjunction with the main box alignment page which details the common features of box alignment across layout
methods.
... column-gap the column-gap property was specified in earlier versions of the multiple-column layout specification, and has now been unified with the gap properties for other layout
methods in box alignment.
... while other layout
methods treat the initial value of column-gap as 0 multicol treats it as 1em, as in general you would not want to have no gap between columns.
Allow - HTTP
the allow header lists the set of
methods supported by a resource.
... this header must be sent if the server responds with a 405 method not allowed status code to indicate which request
methods can be used.
... an empty allow header indicates that the resource allows no request
methods, which might occur temporarily for a given resource, for example.
... header type entity header forbidden header name no syntax allow: <http-
methods> directives <http-
methods> the comma-separated list of allowed http request
methods.
If-Match - HTTP
for get and head
methods, the server will send back the requested resource only if it matches one of the listed etags.
... for put and other non-safe
methods, it will only upload the resource in this case.
... there are two common use cases: for get and head
methods, used in combination with a range header, it can guarantee that the new ranges requested comes from the same resource than the previous one.
... for other
methods, and in particular for put, if-match can be used to prevent the lost update problem.
Details of the object model - JavaScript
a class defines all of the properties that characterize a certain set of objects (considering
methods and fields in java, or members in c++, to be properties).
...in that definition you can specify special
methods, called constructors, to create instances of the class.
... definition define a class with a class definition; instantiate a class with constructor
methods.
... another way of inheriting is by using the call() / apply()
methods.
Functions - JavaScript
read more about objects and
methods in working with objects.
... it turns out that functions are themselves objects—and in turn, these objects have
methods.
...an object containing
methods for manipulating the inner variables of the outer function can be returned.
...however, it does not possess all of the array-manipulation
methods.
Grammar and types - JavaScript
for example: '37' - 7 // 30 '37' + 7 // "377" converting strings to numbers in the case that a value representing a number is in memory as a string, there are
methods for conversion.
... enhanced object literals in es2015, object literals are extended to support setting the prototype at construction, shorthand for foo: foo assignments, defining
methods, making super calls, and computing property names with expressions.
... var obj = { // __proto__ __proto__: theprotoobj, // shorthand for ‘handler: handler’ handler, //
methods tostring() { // super calls return 'd ' + super.tostring(); }, // computed (dynamic) property names [ 'prop_' + (() => 42)() ]: 42 }; regexp literals a regex literal (which is defined in detail later) is a pattern enclosed between slashes.
... the following are examples of string literals: 'foo' "bar" '1234' 'one line \n another line' "john's cat" you can call any of the string object's
methods on a string literal value.
Text formatting - JavaScript
const foo = new string('foo'); // creates a string object console.log(foo); // displays: [string: 'foo'] typeof foo; // returns 'object' you can call any of the
methods of the string object on a string literal value—javascript automatically converts the string literal to a temporary string object, calls the method, then discards the temporary string object.
... a string object has a variety of
methods: for example those that return a variation on the string itself, such as substring and touppercase.
... the following table summarizes the
methods of string objects.
...
methods of string method description charat, charcodeat, codepointat return the character or character code at the specified position in string.
Inheritance and the prototype chain - JavaScript
inheriting "
methods" javascript does not have "
methods" in the form that class-based languages define them.
...// o ---> object.prototype ---> null var b = ['yo', 'whadup', '?']; // arrays inherit from array.prototype // (which has
methods indexof, foreach, etc.) // the prototype chain looks like: // b ---> array.prototype ---> object.prototype ---> null function f() { return 2; } // functions inherit from function.prototype // (which has
methods call, bind, etc.) // f ---> function.prototype ---> object.prototype ---> null with a constructor a "constructor" in javascript is "just" a function that happens to be called with t...
... summary of
methods for extending the prototype chain here are all 4 ways and their pros/cons.
...additionally, the initialization of the constructor may put unwanted
methods onto the object.
Deprecated and obsolete features - JavaScript
regexp
methods the compile() method is deprecated.
... object
methods watch and unwatch are deprecated.
... date
methods getyear and setyear are affected by the year-2000-problem and have been subsumed by getfullyear and setfullyear.
... string
methods html wrapper
methods like string.prototype.fontsize and string.prototype.big.
Warning: String.x is deprecated; use String.prototype.x instead - JavaScript
the non-standard generic string
methods are deprecated and have been removed in firefox 68 and later.
... string generics provide string instance
methods on the string object allowing string
methods to be applied to any object.
... examples deprecated syntax var num = 15; string.replace(num, /5/, '2'); standard syntax var num = 15; string(num).replace(/5/, '2'); shim the following is a shim to provide support to non-supporting browsers: /*globals define*/ // assumes all supplied string instance
methods already present // (one may use shims for these if not available) (function() { 'use strict'; var i, // we could also build the array of
methods with the following, but the // getownpropertynames() method is non-shimable: // object.getownpropertynames(string).filter(function(methodname) { // return typeof string[methodname] === 'function'; // });
methods = [ 'contains', 'substring', 'tolowercase', 'touppercase', 'charat', 'charcodeat', 'indexof', 'lastindexof', 'startswit...
...h', 'endswith', 'trim', 'trimleft', 'trimright', 'tolocalelowercase', 'normalize', 'tolocaleuppercase', 'localecompare', 'match', 'search', 'slice', 'replace', 'split', 'substr', 'concat', 'localecompare' ], methodcount =
methods.length, assignstringgeneric = function(methodname) { var method = string.prototype[methodname]; string[methodname] = function(arg1) { return method.apply(arg1, array.prototype.slice.call(arguments, 1)); }; }; for (i = 0; i < methodcount; i++) { assignstringgeneric(
methods[i]); } }()); ...
Arrow function expressions - JavaScript
arrow function expressions are ill suited as
methods, and they cannot be used as constructors.
... https://www.ecma-international.org/ecma-262/10.0/index.html#sec-strict-mode-code https://www.ecma-international.org/ecma-262/10.0/index.html#sec-arrow-function-definitions-runtime-semantics-evaluation correction: end invoked through call or apply since arrow functions do not have their own this, the
methods call() and apply() can only pass in parameters.
... function foo(n) { var f = (...args) => args[0] + n; return f(10); } foo(1); // 11 arrow functions used as
methods as stated previously, arrow function expressions are best suited for non-method functions.
... let's see what happens when we try to use them as
methods: 'use strict'; var obj = { // does not create a new scope i: 10, b: () => console.log(this.i, this), c: function() { console.log(this.i, this); } } obj.b(); // prints undefined, window {...} (or the global object) obj.c(); // prints 10, object {...} arrow functions do not have their own this.
Method definitions - JavaScript
} } generator
methods generator
methods can be defined using the shorthand syntax as well.
... // using a named property const obj2 = { g: function* () { let index = 0 while (true) { yield index++ } } }; // the same object using shorthand syntax const obj2 = { * g() { let index = 0 while (true) { yield index++ } } }; const it = obj2.g() console.log(it.next().value) // 0 console.log(it.next().value) // 1 async
methods async
methods can also be defined using the shorthand syntax.
... // using a named property const obj3 = { f: async function () { await some_promise } } // the same object using shorthand syntax const obj3 = { async f() { await some_promise } } async generator
methods generator
methods can also be async.
... const obj4 = { f: async function* () { yield 1 yield 2 yield 3 } }; // the same object using shorthand syntax const obj4 = { async* f() { yield 1 yield 2 yield 3 } } method definitions are not constructable
methods cannot be constructors!
Functions - JavaScript
in javascript, functions are first-class objects, because they can have properties and
methods just like any other object.
...see function for information on properties and
methods of function objects.
... defining method functions getter and setter functions you can define getters (accessor
methods) and setters (mutator
methods) on any standard built-in object or user-defined object that supports the addition of new properties.
... method definition syntax starting with ecmascript 2015, you are able to define own
methods in a shorter syntax, similar to the getters and setters.
Atomics - JavaScript
the atomics object provides atomic operations as static
methods.
...all properties and
methods of atomics are static (as is the case with the math object, for example).
... wait and notify the wait() and notify()
methods are modeled on linux futexes ("fast user-space mutex") and provide ways for waiting until a certain condition becomes true and are typically used as blocking constructs.
... static
methods atomics.add() adds the provided value to the existing value at the specified index of the array.
Symbol - JavaScript
the symbol() function returns a value of type symbol, has static properties that expose several members of built-in objects, has static
methods that expose the global symbol registry, and resembles a built-in object class, but is incomplete as a constructor because it does not support the syntax "new symbol()".
...to create symbols available across files and even across realms (each of which has its own global scope), use the
methods symbol.for() and symbol.keyfor() to set and retrieve symbols from the global symbol registry.
... static
methods symbol.for(key) searches for existing symbols with the given key and returns it if found.
... instance
methods symbol.prototype.tosource() returns a string containing the source of the symbol object.
TypedArray - JavaScript
on the following pages you will find common properties and
methods that can be used with any typed array containing elements of any type.
... the buffer address is saved as an internal property of the instance and all the
methods of %typedarray%.prototype, i.e.
... static
methods typedarray.from() creates a new typedarray from an array-like or iterable object.
... instance
methods typedarray.prototype.copywithin() copies a sequence of array elements within the array.
Namespaces crash course - SVG: Scalable Vector Graphics
to resolve these problems, dom level 2 core added namespace aware equivalents of all the applicable dom level 1
methods.
... when scripting svg, it is important to use the namespace aware
methods.
... the table below lists the dom1
methods that shouldn't be used in svg, along with their equivalent dom2 counterparts that should be used instead.
...entsbytagnamens (also added to element) getnameditem getnameditemns hasattribute hasattributens removeattribute removeattributens removenameditem removenameditemns setattribute setattributens setattributenode setattributenodens setnameditem setnameditemns the first parameter for all the dom2 namespace aware
methods must be the namespace name (also known as the namespace uri) of the element or parameter in question.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
point or dompointreadonly instead of svgpoint implementation status unknown members of svgstylable and svglangspace available in svgelement implementation status unknown svggraphicselement instead of svglocatable and svgtransformable implementation status unknown svggeometryelement with svggeometryelement.ispointinfill() and svggeometryelement.ispointinstroke()
methods partially implemented (bug 1239100).
... the
methods ispointinfill() and ispointinstroke() are not implemented yet (bug 1325319).
... svggraphicselement.gettransformtoelement() removed not removed yet svggraphicselement.getctm() on the outermost element implementation status unknown animval attribute alias of baseval implementation status unknown dataset attribute for svgelement implementation status unknown moved pathlength attribute and gettotallength() and getpointatlength()
methods from svgpathelement to svggeometryelement implemented (bug 1239100) document structure change notes svgsvgelement.suspendredraw(), svgsvgelement.unsuspendredraw(), and svgsvgelement.unsuspendredrawall() deprecated turned into no-ops (bug 734079) externalresourcesrequired attribute removed implementation status unknown auto value for widt...
...plementation status unknown paths change notes b and b path commands implementation status unknown z and z path commands to add path coordinate data to previous command implementation status unknown not render <path>, <polygon> and <polyline> with no data implementation status unknown svgpathseg*, svganimatedpathdata and related
methods removed from svgpathelement implementation status unknown d attribute as css property implementation status unknown basic shapes change notes pathlength attribute for all basic shapes implementation status unknown svganimatedpoints.animatedpoints as alias of svganimatedpoints.points implementation status unknown auto behavior...
Using the WebAssembly JavaScript API - WebAssembly
this is achieved using the webassembly.compilestreaming() and webassembly.instantiatestreaming()
methods.
... these
methods are easier than their non-streaming counterparts, because they can turn the byte code directly into module/instance instances, cutting out the need to separately put the response into an arraybuffer.
... loading our wasm module without streaming if you can't or don't want to use the streaming
methods as described above, you can use the non-streaming
methods webassembly.compile / webassembly.instantiate instead.
... these
methods don't directly access the byte code, so require an extra step to turn the response into an arraybuffer before compiling/instantiating the wasm module.
widget - Archive of obsolete content
methods destroy() removes the widget from the add-on bar.
... this class has all the same
methods, attributes and events as the widget class except for the getview method and the attach event.
..."secured" : "unsafe"; } tabs.on('ready', updatewidgetstate); tabs.on('activate', updatewidgetstate);
methods destroy() removes the widget view from the add-on bar.
platform/xpcom - Archive of obsolete content
r with its contract id: var { factory } = require('sdk/platform/xpcom'); var { cc, ci } = require('chrome'); var contractid = '@me.org/request' // create and register the factory var factory = factory({ contract: contractid, component: request }); now xpcom users can access our implementation in the normal way: var request = cc[contractid].createinstance(ci.nsirequest); request.resume();
methods queryinterface(interface) this method is called automatically by xpcom, so usually you don't need to call it yourself.
...
methods createinstance(outer, iid) creates an instance of the component associated with this factory.
...the
methods of this interface will be callable on the returned object.
ui/button/action - Archive of obsolete content
after that, any attempts to access any of its properties or to call any of its
methods will throw exceptions.
... actionbutton
methods click() click the button.
...after calling this function, the button will no longer appear in the ui, and accessing any of its properties or
methods will throw an error.
ui/button/toggle - Archive of obsolete content
after that, any attempts to access any of its properties or to call any of its
methods will throw exceptions.
... togglebutton
methods click() click the button.
...after calling this function, the button will no longer appear in the ui, and accessing any of its properties or
methods will throw an error.
Bookmarks - Archive of obsolete content
the places bookmarks service, provided by the nsinavbookmarksservice interface, provides
methods for creating, deleting, and manipulating bookmarks and bookmark folders.
... manipulating existing items there are a number of convenient
methods you can use to make changes to existing bookmarks and bookmark folders.
... var parentfolderid = bmsvc.getfolderidforitem(newbkmkid); observing changes to bookmarks and tags to set up an observer to listen for changes related to bookmarks, you will need to create an nsinavbookmarkobserver object and use the nsinavbookmarksservice.addobserver() and nsinavbookmarksservice.removeobserver()
methods.
Canvas code snippets - Archive of obsolete content
function getpixelcolour(canvas, x, y) { var cx = canvas.getcontext('2d'); var pixel = cx.getimagedata(x, y, 1, 1); return { r: pixel.data[0], g: pixel.data[1], b: pixel.data[2], a: pixel.data[3] }; } chaining
methods this class provides jquery-style chained access to 2d context
methods and properties.
... function canvas2dcontext(canvas) { if (typeof canvas === 'string') { canvas = document.getelementbyid(canvas); } if (!(this instanceof canvas2dcontext)) { return new canvas2dcontext(canvas); } this.context = this.ctx = canvas.getcontext('2d'); if (!canvas2dcontext.prototype.arc) { canvas2dcontext.setup.call(this, this.ctx); } } canvas2dcontext.setup = function() { var
methods = ['arc', 'arcto', 'beginpath', 'beziercurveto', 'clearrect', 'clip', 'closepath', 'drawimage', 'fill', 'fillrect', 'filltext', 'lineto', 'moveto', 'quadraticcurveto', 'rect', 'restore', 'rotate', 'save', 'scale', 'settransform', 'stroke', 'strokerect', 'stroketext', 'transform', 'translate']; var getter
methods = ['createpattern', 'drawfocusring', 'ispointinpath', 'measuretext', //...
...r child objects 'createimagedata', 'createlineargradient', 'createradialgradient', 'getimagedata', 'putimagedata' ]; var props = ['canvas', 'fillstyle', 'font', 'globalalpha', 'globalcompositeoperation', 'linecap', 'linejoin', 'linewidth', 'miterlimit', 'shadowoffsetx', 'shadowoffsety', 'shadowblur', 'shadowcolor', 'strokestyle', 'textalign', 'textbaseline']; for (let m of
methods) { let method = m; canvas2dcontext.prototype[method] = function() { this.ctx[method].apply(this.ctx, arguments); return this; }; } for (let m of getter
methods) { let method = m; canvas2dcontext.prototype[method] = function() { return this.ctx[method].apply(this.ctx, arguments); }; } for (let p of props) { let prop = p; canvas2dcontext.pr...
Downloading Files - Archive of obsolete content
the following
methods of downloading files may not work as expected after firefox 26, and should no longer be used.
...alue = hardcodedpassword; return true; }, promptusernameandpassword: function(dialogtitle, text, passwordrealm, savepassword, user, pwd) { user.value = hardcodedusername; pwd.value = hardcodedpassword; return true; } }; persist.saveuri(urltosave, null, null, null, "", nsfileinstance, privacy); the above is going to give you errors about missing nsidownloadprogresslistener
methods, so you should implement that as well.
... for example, with empty dummy
methods if you are not interested about the progress.
View Source for XUL Applications - Archive of obsolete content
method overview gviewsourceutils exposes several
methods, but the only one you should be using directly is the viewsource method.
... the rest of those
methods should be considered private, and might become inaccessible in the future.
... void viewsource(aobject);
methods viewsource opens a viewer to the source code for some document or uri.
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
also, because it works with the javascript in extensions and firefox itself, the debugger can be a good way to learn about design
methods.
... in junit and similar packages,
methods containing tests that start with testhoge are recognized as tests.
... benefits of testing implementing the tests described here confirms that the
methods work correctly, and builds confidence in your implementations.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
xul display
methods xul is used almost exclusively in mozilla applications like firefox and thunderbird, and extensions for them, but other web browsers based on firefox or the gecko engine, and even web-based content also used xul.
...using
methods we will cover in chapter 4, we will see how windows can be acquired using these values as keys.
... functions like back, forward, reload can all be called using the goback(), goforward(), and reload()
methods.
Connecting to Remote Content - Archive of obsolete content
if the response is an xml document, the responsexml property will hold an xmldocument object that can be manipulated using dom
methods.
...let's assume that the xml returned from remote server is this: <?xml version="1.0"?> <data> <shops> <shop> <name>apple</name> <code>a001</code> </shop> <shop> <name>orange</name> </shop> </shops> <total>2</total> </data> when a valid xml response comes back from the remote server, the xml document object can be manipulated using different dom
methods, to display the data in the ui or store it into a local datasource.
...(somexslfile, -1, 0x01, 0444); // read only // parse from the xslt stylesheet file stream xsldocument = domparser.parsefromstream( filestream, null, filestream.available(), "text/xml"); // import the xslt stylesheet to the xslt processor xsltprocessor.importstylesheet(xsldocument); finally, you can either use nsixsltprocessor.transformtodocument() or nsixsltprocessor.transformtofragment()
methods to transform the xml document.
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
building dom trees in most cases, dom trees should be built exclusively with dom creation
methods.
... the following
methods will all safely create a dom tree without risk of remote execution.
...el', {for:'mycheck'}, 'here is text of label, click this text will check the box' ] ] ] ]; document.body.appendchild(jsontodom(json, document, {})); jquery templating for extensions which already use jquery, it is possible to use its builtin dom building functions for templating, though care must be taken when passing non-static strings to
methods such as .append() and .html().
Dehydra Object Reference - Archive of obsolete content
the following additional properties are available on functions: property type description .isvirtual true or "pure" true for virtual
methods, or "pure" for pure virtuals (e.g.
...each member of the array has the following properties: { access: 'public' | 'protected' | 'private', type: type object representing the base class } .members array of variable objects an array containing all the member variables and
methods.
... function type these represent the types functions and
methods in the type system: property type description .type type object the function return type.
Basics - Archive of obsolete content
methods info()this method does stuff.
...
methods show(titlestringbodystringiconstring)draws a notification box.
...
methods open(urlstring)opens a new tab in your browser with a defined url.
Scripting - Archive of obsolete content
the platform property implements the nsiplatformglue interface, whose
methods are described in the following section.
...
methods of the window.platform object can be called from webapp.js or from web content.
... the following code can be used by web content to determine whether it is running in prism: if ("platform" in window) { // prism-specific code goes here } see the nsiplatformglue idl definition file for details of the
methods available to prism apps.
Space Manager Detailed Design - Archive of obsolete content
*/ void clearregions(); /** *
methods for dealing with the propagation of float damage during * reflow.
... */ void clearregions(); float impact /** *
methods for dealing with the propagation of float damage during * reflow.
... */ prbool hasfloatdamage() { return !mfloatdamage.isempty(); } void includeindamage(nscoord aintervalbegin, nscoord aintervalend) { mfloatdamage.includeinterval(aintervalbegin + my, aintervalend + my); } prbool intersectsdamage(nscoord aintervalbegin, nscoord aintervalend) { return mfloatdamage.intersects(aintervalbegin + my, aintervalend + my); } debug only
methods /** * dump the state of the spacemanager out to a file */ nsresult list(file* out); void sizeof(nsisizeofhandler* ahandler, pruint32* aresult) const; unused / obsolete
methods /* * get the frame that's associated with the space manager.
open - Archive of obsolete content
description this method opens the file, preparing its resources for use by subsequent
methods to examine or modify the file.
... certain
methods of file, such as read and write should not be used when the file is not open.
... other
methods, such as remove may not be used when the file is open.
Anonymous Content - Archive of obsolete content
the anonymous content is accessible only through special
methods like getanonymousnodes and getanonymouselementbyattribute.
... dom
methods that can be invoked on elements (e.g., getelementsbytagname) will only see nodes that are in the same scope.
...
methods invoked on the document (e.g., getelementbyid) only see nodes that are at the document-level scope.
Binding Attachment and Detachment - Archive of obsolete content
note: some older papers mentioned dom
methods document.addbinding and document.removebinding; these were subsequently discarded as redundant and not implemented.
... the
methods and properties of the binding are installed on the element and become available to scripts that reference the bound element.
...
methods and properties with getters/setters are no longer accessible from the binding, although properties with raw values remain.
DOM Interfaces - Archive of obsolete content
the nsidomdocumentxbl interface the nsidomdocumentxbl interface contains
methods for manipulating xbl bindings.
... idl definition interface nsidomdocumentxbl { nodelist getanonymousnodes(in element elt); element getanonymouselementbyattribute(in element elt, in domstring attrname, in domstring attrvalue); element getbindingparent(in node node); void loadbindingdocument(in domstring documenturl); };
methods getanonymousnodes the getanonymousnodes method retrieves the anonymous children of the specified element.
... getanonymouselementbyattribute the getanonymouselementbyattribute
methods retrieves an anonymous descendant with a specified attribute value.
XPInstall API reference - Archive of obsolete content
objects install properties
methods adddirectory addfile alert cancelinstall confirm deleteregisteredfile execute gestalt getcomponentfolder getfolder getlasterror getwinprofile getwinregistry initinstall loadresources logcomment patch performinstall refreshplugins re...
...gisterchrome reseterror setpackagefolder installtrigger no properties
methods compareversion enabled getversion install installchrome startsoftwareupdate installversion properties
methods compareto init tostring file no properties
methods copy dircreate dirgetparent dirremove dirrename diskspaceavailable execute exists isdirectory isfile macalias moddate moddatechanged move remove rename size windowsgetshortname windowsregisterserver windowsshortcut winprofile n...
...o properties
methods getstring writestring winreg no properties
methods createkey deletekey deletevalue enumkeys enumvaluenames getvalue getvaluenumber getvaluestring iskeywritable keyexists setrootkey setvalue setvaluenumber setvaluestring valueexists winregvalue constructor other information return codes see complete list examples trigger scripts and install scripts code samples file.macalias file.windowsshortcut install.adddirectory install.addfile installtrigger.installchrome installtrigger.startsoftwareupdate windows install ...
Getting File Information - Archive of obsolete content
file permissions several
methods may be used to check for file permissions.
... the following four
methods return true or false: nsifile.isreadable() - returns true if the file can be read from.
... the four
methods above are usually sufficient for most purposes.
findbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] in gecko 1.9, the findbar widget moved into toolkit, so it's available to any xul application, as well as extensions.
... attributes browserid, findnextaccesskey, findpreviousaccesskey, highlightaccesskey, matchcaseaccesskey properties browser, findmode
methods close, onfindagaincommand, open, startfind, togglehighlight example <browser type="content-primary" flex="1" id="content" src="about:blank"/> <findbar id="findtoolbar" browserid="content"/> attributes browserid type: string the id of the browser element to which the findbar is attached.
... possible values are: find_normal (0): normal find find_typeahead (1): typeahead find find_links (2): link find
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
MenuModification - Archive of obsolete content
modifying a menu menus have a number of
methods which may be used to add and remove items.
... both the appenditem and insertitemat
methods return the new menuitem, so you can further modify it, for instance to add an access key, as in the following example: var item = menu.appenditem("insert", "insert"); item.accesskey = "i"; appending submenus there is no built-in method to append submenus to a menu.
... to do this, we instead need to use the inherited node modification
methods available for all elements.
textbox (Toolkit autocomplete) - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is created by setting the type attribute of the textbox to autocomplete.
...ller, crop, disableautocomplete, disablekeynavigation, disabled, editable, focused, forcecomplete, highlightnonmatches, ignoreblurwhilesearching, inputfield, label, maxlength, maxrows, minresultsforpopup, open, popup, popupopen, searchcount, searchparam, selectionend, selectionstart, showcommentcolumn, showimagecolumn,size, tabindex, tabscrolling, textlength, textvalue, timeout, type, value
methods getsearchat, onsearchcomplete, ontextentered, ontextreverted, select, setselectionrange examples <textbox type="autocomplete" autocompletesearch="history"/> attributes accesskey type: character this should be set to a character that is used as a shortcut key.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata...
Textbox (XPFE autocomplete) - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is created by setting the type attribute of a textbox to autocomplete.
...cecomplete, highlightnonmatches, ignoreblurwhilesearching, inputfield, issearching, iswaiting, label, maxlength, maxrows, minresultsforpopup, nomatch, open, popup, popupopen, resultspopup, searchcount, searchparam, searchsessions, selectionend, selectionstart, sessioncount, showcommentcolumn, showpopup, size, tabindex, tabscrolling, textlength, textvalue, timeout, type, useraction, value
methods addsession, clearresults, getdefaultsession, getresultat, getresultcount, getresultvalueat, getsession, getsessionbyname, getsessionresultat, getsessionstatusat, getsessionvalueat, removesession, select, setselectionrange, syncsessions examples (example needed) attributes accesskey type: character this should be set to a character that is used as a shortcut key.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata...
Custom Tree Views - Archive of obsolete content
the tree will call
methods of the view to get the information that it needs to display.
...three
methods that you should implement are listed below.
... the nsitreeview interface lists all of the properties and
methods that you can implement for the tree view.
Focus and Selection - Archive of obsolete content
the following example demonstrates this: example 5 : source view <textbox id="addr"/> <button label="focus" oncommand="document.getelementbyid('addr').focus()"/> or, you can use the
methods advancefocus and rewindfocus on the command dispatcher.
... these
methods move the focus to the next element in sequence or the previous element respectively.
...this interface also provides a number of other
methods which may be useful.
Tree View Details - Archive of obsolete content
all of these
methods must be implemented by the view for children to be handled properly.
... review of the
methods here is a review of the
methods needed to implement hierarchical views: getlevel(row) hasnextsibling(row, afterindex) getparentindex(row) iscontainer(row) iscontainerempty(row) iscontaineropen(row) toggleopenstate(row) the afterindex argument to hasnextsibling function is used as optimization to only start looking for the next sibling after that point.
... function init() { document.getelementbyid("elementlist").view = treeview; } the custom tree view will need to implement a number of
methods, of which the important ones will be examined individually.
XULBrowserWindow - Archive of obsolete content
the xulbrowserwindow object provides
methods and properties that let the browser update the user interface of the enclosing xul window.
...see the linked interfaces for the definition of the implemented
methods.
...
methods hidechromeforlocation determines whether or not browser chrome should be hidden for the specified location.
The Implementation of the Application Object Model - Archive of obsolete content
four interfaces with over 100
methods combined, a significant portion of which are redundant.
... statement #1 the two points raised in the previous two paragraphs, namely (1) redundancy of
methods in the interfaces as well as a likely code redundancy in the implementation of some of those
methods, and (2) the desire to be insulated from the layout dll should those interfaces change, imply that a layer needs to exist between the pluggable content and the content tree interfaces.
...first of all it could streamline the redundancy in the interface
methods and present a new interface for pluggable content that was much smaller and easier to plug into than the 4-5 interfaces required if directly implementing the content tree interfaces.
button - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a button that can be pressed by the user.
...you can use this feature to replace the standard dialog box buttons with custom buttons, yet the dialog event
methods will still function.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
dialog - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element should be used in place of the window element for dialog boxes.
...uttonaccesskeyaccept, buttonaccesskeycancel, buttonaccesskeydisclosure, buttonaccesskeyextra1, buttonaccesskeyextra2, buttonaccesskeyhelp, buttonalign, buttondir, buttondisabledaccept, buttonlabelaccept, buttonlabelcancel, buttonlabeldisclosure, buttonlabelextra1, buttonlabelextra2, buttonlabelhelp, buttonorient, buttonpack, buttons, defaultbutton, title properties buttons, defaultbutton
methods acceptdialog, canceldialog, centerwindowonscreen, getbutton, movetoalertposition examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <dialog id="donothing" title="dialog example" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" buttons="accept,cancel" buttonlabelcancel="cancel" buttonlabelaccept="save"> <di...
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnam...
iframe - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an inner frame that works much like the html <iframe> element.
...most of its
methods are callable directly on the element itself, such as goback and goforward.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removec...
menu - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element, much like a button, that is placed on a menubar.
... attributes acceltext, accesskey, allowevents, command, crop, disabled, image, label, menuactive, open, sizetopopup, tabindex, value properties accessibletype, accesskey, command, control, crop, disabled, image, itemcount, label, labelelement, menupopup, open, parentcontainer, selected, tabindex, value
methods appenditem, getindexofitem, getitematindex, insertitemat, removeitemat style classes menu-iconic example <menubar id="sample-menubar"> <menu id="file-menu" label="file"> <menupopup id="file-popup"> <menuitem label="new"/> <menuitem label="open"/> <menuitem label="save"/> <menuseparator/> <menuitem label="exit"/> </menupopup> </menu> <menu id="edit...
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
menulist - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element that can be used for drop-down choice lists.
... attributes accesskey, crop, disableautoselect, disabled, editable, focused, image, label, oncommand, open, preference, readonly, sizetopopup, tabindex, value properties accessibletype, crop, description, disableautoselect, disabled, editable, editor, image, inputfield, itemcount, label, menuboxobject, menupopup, open, selectedindex, selecteditem, tabindex, value
methods appenditem, contains, getindexofitem, getitematindex, insertitemat, removeallitems, removeitemat, select examples <menulist> <menupopup> <menuitem label="option 1" value="1"/> <menuitem label="option 2" value="2"/> <menuitem label="option 3" value="3"/> <menuitem label="option 4" value="4"/> </menupopup> </menulist> attributes accesskey type: character this s...
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
menupopup - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container used to display the contents of a popup menu.
... attributes ignorekeys, left, onpopuphidden, onpopuphiding, onpopupshowing, onpopupshown, position, top properties accessibletype, anchornode, popupboxobject, position, state, triggernode
methods hidepopup, moveto, openpopup, openpopupatscreen, setconsumerollupevent, showpopup, sizeto examples the following example shows how a menupopup may be attached to a menulist.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
notification - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] the notification is used to display an informative message.
... attributes image, label, priority, persistence, type, value properties accessibletype, control, image, label, priority, persistence, type, value
methods close examples <notification label="this is a warning"/> attributes image type: uri the uri of the image to appear on the element.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
notificationbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] the notificationbox element is used to display notifications above an element.
... properties currentnotification, allnotifications, notificationshidden
methods appendnotification, getnotificationwithvalue, removeallnotifications, removecurrentnotification, removenotification, removetransientnotifications, attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, inser...
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
panel - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a panel is a used as a temporary floating popup window that may contain any type of content.
... attributes backdrag, close, consumeoutsideclicks, fade, flip, ignorekeys, label, left, level, noautofocus, noautohide, norestorefocus, onpopuphidden, onpopuphiding, onpopupshowing, onpopupshown, position, titlebar, top, type properties accessibletype, label, popupboxobject, popup, state
methods hidepopup, moveto, openpopup, openpopupatscreen, sizeto examples the following example shows how a panel may be attached to a label.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
prefwindow - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a specialized window used for preference dialogs.
... attributes buttonalign, buttondir, buttonorient, buttonpack, buttons, defaultbutton, lastselected, onbeforeaccept, ondialogaccept, ondialogcancel, ondialogdisclosure, ondialoghelp, onload, onunload, title, type properties buttons, currentpane, defaultbutton, lastselected, preferencepanes, type
methods acceptdialog, addpane, canceldialog, centerwindowonscreen, getbutton, opensubdialog, openwindow, showpane examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="saveoptions" label="backups"> <preferences> <preference id="pref-backup" name="myapp.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
radiogroup - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a group of radio buttons.
... attributes disabled, focused, preference, tabindex, value properties accessibletype, disabled, focuseditem, itemcount, selectedindex, selecteditem, tabindex, value
methods appenditem, checkadjacentelement, getindexofitem, getitematindex, insertitemat, removeitemat examples <radiogroup> <radio id="orange" label="red"/> <radio id="violet" label="green" selected="true"/> <radio id="yellow" label="blue"/> </radiogroup> attributes disabled type: boolean indicates whether the element is disabled or not.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
scale - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a scale (sometimes referred to as a "slider") allows the user to select a value from a range.
... attributes dir, disabled, increment, max, min, movetoclick, pageincrement, tabindex, value properties disabled, max, min, increment, pageincrement, tabindex, value,
methods decrease, decreasepage, increase, increasepage, examples horizontal scale: <scale min="1" max="10"/> vertical scale: <scale min="1" max="10" orient="vertical"/> attributes dir type: one of the values below the direction in which the child elements of the element are placed.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
scrollbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a box that has additional functions that can be used to scroll the content.
...do this instead: var xpcominterface =scrollbox_element.boxobject.queryinterface( components.interfaces.nsiscrollboxobject); xpcominterface.ensureelementisvisible(child_element_to_make_visible); see the nsiscrollboxobject api for other scroll-related
methods.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
tab - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single tab which should be placed inside a tabs element.
...the tabbrowser element's pintab and unpintab
methods handle pinning and unpinning tabs.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
tabs - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a row of tabs.
... attributes closebutton, disableclose, disabled, onclosetab, onnewtab, onselect, setfocus, selectedindex, tabbox, tabindex, tooltiptextnew, value, properties accessibletype, disabled, itemcount, selectedindex, selecteditem, tabindex, value,
methods advanceselectedtab, appenditem, getindexofitem, getitematindex, insertitemat, removeitemat examples (example needed) attributes closebutton obsolete since gecko 1.9.2 type: boolean if this attribute is set to true, the tabs row will have a "new tab" button and "close" button on the ends.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
toolbarbutton - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a button that appears on a toolbar.
...you can use this feature to replace the standard dialog box buttons with custom buttons, yet the dialog event
methods will still function.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
toolbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container for toolbars.
... properties accessible, customtoolbarcount, externaltoolbars, palette, toolbarset
methods appendcustomtoolbar, collapsetoolbar, expandtoolbar examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="yourwindow" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="toolbox example" width="300"> <toolbox> <toolbar> <toolbarbutton label="back"/> <toolbarbutton label="forward"/> <toolbar...
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdat...
tooltip - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used for the tooltip popups.
... attributes crop, default, label, noautohide, onpopuphidden, onpopuphiding, onpopupshowing, onpopupshown, page, position properties accessibletype, label, popupboxobject, position, state
methods hidepopup, moveto, openpopup, openpopupatscreen, showpopup, sizeto examples <tooltip id="moretip" orient="vertical" style="background-color: #33dd00;"> <label value="click here to see more information"/> <label value="really!" style="color: red;"/> </tooltip> <vbox> <button label="simple" tooltiptext="a simple popup"/> <button label="more" tooltip="moretip"/> </vbox> attributes c...
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata...
tree - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container which can be used to hold a tabular or hierarchical set of rows of elements.
...(all trees have seltype="multiple" by default.) to reliably change or determine a selection, instead use the nsitreeselection interface
methods available via tree.view.selection.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
window - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] describes the structure of a top-level window.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
...insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata see also: dom window object
methods note the error message "xml parsing error: undefined entity...<window" can be caused by a missing or unreachable dtd file referenced in the xul file.
wizard - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used to construct a step-by-step wizard found in some applications to guide users through a task.
... attributes firstpage, lastpage, pagestep, title, windowtype properties canadvance, canrewind, currentpage, onfirstpage, onlastpage, pagecount, pageindex, pagestep, title, wizardpages
methods advance, cancel, extra1, extra2, getbutton, getpagebyid, goto, rewind examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <wizard id="thewizard" title="secret code wizard" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script> function checkcode(){ document.getelementbyid('thewizard').canadvance = (document.getele...
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnam...
Packages - Archive of obsolete content
description the packages object lets you access the public
methods and fields of an arbitrary java class from within javascript.
...use standard java dot notation to access the classes,
methods, and fields in these packages.
...the setsize, settitle, and setvisible
methods are all available to javascript as public
methods of java.awt.dialog.
Create the Canvas and draw on it - Game development
ctx.beginpath(); ctx.rect(20, 40, 50, 50); ctx.fillstyle = "#ff0000"; ctx.fill(); ctx.closepath(); all the instructions are between the beginpath() and closepath()
methods.
...try adding this to the bottom of your javascript, saving and refreshing: ctx.beginpath(); ctx.arc(240, 160, 20, 0, math.pi*2, false); ctx.fillstyle = "green"; ctx.fill(); ctx.closepath(); as you can see we're using the beginpath() and closepath()
methods again.
...this is because, just as with css, color can be specified as a hexadecimal value, a color keyword, the rgba() function, or any of the other available color
methods.
2D maze game with device orientation - Game development
without the framework, to add the canvas element to the page, you would have to write something like this inside the <body> tag: <canvas id='game' width='320' height='480'></canvas> the important thing to remember is that the framework is setting up helpful
methods to speed up a lot of things like image manipulation or assets management, which would be a lot harder to do manually.
... note: you can read the building monster wants candy article for the in-depth introduction to the basic phaser-specific functions and
methods.
...after leveldata, but still in the initlevels function, we're adding the blocks into an array in the for loop using some of the framework-specific
methods: for(var i=0; i<this.maxlevels; i++) { var newlevel = this.add.group(); newlevel.enablebody = true; newlevel.physicsbodytype = phaser.physics.arcade; for(var e=0; e<this.leveldata[i].length; e++) { var item = this.leveldata[i][e]; newlevel.create(item.x, item.y, 'element-'+item.t); } newlevel.setall('body.immovable', true); newlevel.visible = false; ...
Handling different text directions - Learn web development
once you start to look at css layout, and in particular the newer layout
methods, this idea of block and inline becomes very important.
... due to the fact that writing mode and direction of text can change, newer css layout
methods do not refer to left and right, and top and bottom.
...however, ultimately we expect that people will transition to the logical versions for most things, as they make a lot of sense once you start also dealing with layout
methods such as flexbox and grid.
Floats - Learn web development
prerequisites: html basics (study introduction to html), and an idea of how css works (study introduction to css.) objective: to learn how to create floated features on webpages, and to use the clear property and other
methods of clearing floats.
...see the article on legacy layout
methods for information on how they used to be used, which may be useful if you find yourself working on older projects.
... previous overview: css layout next in this module introduction to css layout normal flow flexbox grid floats positioning multiple-column layout responsive design beginner's guide to media queries legacy layout
methods supporting older browsers fundamental layout comprehension assessment ...
Beginner's guide to media queries - Learn web development
it's always worth considering whether these layout
methods can achieve what you want without adding media queries.
...however, in practice you will find that good use of modern layout
methods, enhanced with media queries, will give the best results.
... previous overview: css layout next in this module introduction to css layout normal flow flexbox grid floats positioning multiple-column layout responsive design beginner's guide to media queries legacy layout
methods supporting older browsers fundamental layout comprehension assessment ...
Functions — reusable blocks of code - Learn web development
functions versus
methods programmers call functions that are part of objects
methods.
... the built-in code we've made use of so far come in both forms: functions and
methods.
... you can check the full list of the built-in functions, as well as the built-in objects and their corresponding
methods here.
Arrays - Learn web development
some useful array
methods in this section we'll look at some rather useful array-related
methods that allow us to split strings into array items and vice versa, and add new items into arrays.
...if you are not sure how to do this, consult the useful string
methods article for some help, or even better, look at the converting between strings and arrays section of this article.
...tion.value === 'show solution') { userentry = textarea.value; } else { solutionentry = textarea.value; } updatecode(); }; html { font-family: sans-serif; } h2 { font-size: 16px; } .a11y-label { margin: 0; text-align: right; font-size: 0.7rem; width: 98%; } body { margin: 10px; background-color: #f5f9fa; } active learning: top 5 searches a good use for array
methods like push() and pop() is when you are maintaining a record of currently active items in a web app.
Working with JSON - Learn web development
this is not a big issue — javascript provides a global json object that has
methods available for converting between the two.
... other notes json is purely a data format — it contains only properties, no
methods.
...luckily, these two problems are so common in web development that a built-in json object is available in browsers, which contains the following two
methods: parse(): accepts a json string as a parameter, and returns the corresponding javascript object.
TypeScript support in Svelte - Learn web development
the variable todosstatus, which we used to programmatically access the
methods exposed by the todosstatus component, is of type todosstatus.
...et's see a quick example, a simple stack class that let's us push and pop elements, like this: export class stack { private elements = [] push = (element) => this.elements.push(element) pop() { if (this.elements.length === 0) throw new error('the stack is empty!') return this.elements.pop() } } in this case elements is an array of type any, and accordingly the push() and pop()
methods both receive and return a variable of type any.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events,
methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, li...
Creating our first Vue component - Learn web development
{{}} is a special template syntax in vue, which lets us print the result of javascript expressions defined in our class, inside our template, including values and
methods.
...it also binds other attributes (data, which you’ve already seen, and others like
methods, computed, etc.) directly to the instance.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events,
methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, li...
AddonListener
these notifications come in the form of calls to
methods on the listener object.
... a listener only needs to implement the
methods corresponding to the events it cares about; missing
methods will not cause any problems.
...art) void ondisabled(in addon addon) void oninstalling(in addon addon, in boolean needsrestart) void oninstalled(in addon addon) void onuninstalling(in addon addon, in boolean needsrestart) void onuninstalled(in addon addon) void onoperationcancelled(in addon addon) void onpropertychanged(in addon addon, in string properties[])
methods onenabling() called when an add-on is about to be enabled.
Assert.jsm
to use it, you first need to import the code module into your javascript scope: components.utils.import("resource://testing-common/assert.jsm"); the assert class offers
methods for performing common logical assertions.
... ok, equal, notequal, deepequal, notdeepequal, strictequal, notstrictequal, throws, setreporter, report
methods ok() pure assertion tests whether a value is truthy, as determined by !!guard.
... all assertion
methods provide both the actual and expected values to the assertion error for display purposes.
Download
this can be done using the removepartialdata() or the finalize()
methods.
...
methods start() starts the download for the first time, or restarts a download that failed or has been canceled.
... note: this method should be used in place of the cancel() and removepartialdata()
methods while shutting down or disposing of the download object, to prevent other callers from interfering with the operation.
Downloads.jsm
example (using task.jsm): try { yield downloads.fetch(sourceuri, targetfile); } catch (ex if ex instanceof downloads.error && ex.becausetargetfailed) { console.log("unable to write to the target file, ignoring the error."); }
methods createdownload() creates a new download object.
... while some of the legacy
methods and properties have an equivalent in downloads.jsm, there might be subtle differences in behavior.
...you may see the documentation of the new
methods and properties for details.
XPCOMUtils.jsm
to use this, you first need to import the code module into your javascript scope: components.utils.import("resource://gre/modules/xpcomutils.jsm"); using xpcomutils exposing a javascript class as a component using these utility
methods requires four key steps: import xpcomutils.jsm, as explained previously.
...
methods definelazygetter() getter functions in javascript give you a way to define a property of an object, but not calculate the property's value until it is accessed.
...for example, if your component implements nsistreamconverter: mycomponent.prototype = { queryinterface: xpcomutils.generateqi([ components.interfaces.nsirequestobserver, components.interfaces.nsistreamlistener, components.interfaces.nsistreamconverter, ]), // ...
methods...
About NSPR
additionally, nspr provides synchronization
methods more suited for use by java.
...it was originally intended to export synchronous i/o
methods only, relying on threads to provide the concurrency needed for complex applications.
...while the object is not declared as opaque, the api provides
methods that allow and encourage clients to treat the addresses as polymorphic items.
Interfacing with the XPCOM cycle collector
the traverse and unlink
methods on the helper object are not magic; they are programmer-supplied and must be correct, or else the collector will fail.
...or your class may have a complicated ownership structure, such that the simple ns_impl_cycle_collection_n macros are insufficient; in this case you might need to implement the traverse and unlink
methods of your helper class manually.
... manually implementing the traverse and unlink
methods each field that may contain cycle collected objects needs to be passed to the cycle collector, so it can detect cycles that pass through those fields.
Components.classes
all of the properties and
methods of the nsijscid and its ancestor interface nsijsid are available for use on the objects contained in this object.
... usage in order to retrieve the object for a given contractid, you can query the components.classes array as follows: var clazz0 = components.classes["@mozilla.org/messenger;1"]; clazz0 is the class object for the contractid @mozilla.org/messenger;1, which is not usually used by itself, but whose createinstance and getservice
methods can be used to create a new instance of the component or to access the singleton instance, if the contract id represents a service.
... .createinstance(components.interfaces.nsisupportsarray); which is a shortcut to var obj = components.classes["@mozilla.org/supports-array;1"] .createinstance(); obj.queryinterface(components.interfaces.nsisupportsarray); if you don't provide a specific interface to createinstance(), it will return an xpconnect wrapper for the component, which only exposes the
methods of the nsisupports interface (and under certain circumstances the special wrappedjsobject property).
Language bindings
more specifically, an xpcom language binding: enables access to xpcom objects from that language (where access means reading/writing/creating xpcom objects as well as calling
methods on them).
...the scriptable
methods on the nsicomponentmanager interface can be called directly on this object.components.resultscomponents.results is a read-only object whose properties are the names listed as the first parameters of the macros in js/xpconnect/src/xpc.msg (also at table of errors), with the value of each corresponding to that constant's value.components.returncodecomponents.stackcomponents.stack is a read only pro...
...any expando properties are not visible, and if any native properties have been redefined, this has no effect.components.utils.makeobjectpropsnormalensures that the specified object's
methods are all in the object's scope, and aren't cross-component wrappers.components.utils.reporterrorcomponents.utils.reporterror reports a javascript error object to the error console, and returns.
NS_ConvertASCIItoUTF16
methods constructors void ns_convertasciitoutf16(const char*) - source parameters char* acstring void ns_convertasciitoutf16(const char*, pruint32) - source parameters char* acstring pruint32 alength void ns_convertasciitoutf16(const nsacstring_internal&) - source parameters nsacstring_internal& acstring operator= nsautostring& operator=(const nsautostring&) - source parameter...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
NS_ConvertUTF16toUTF8
methods constructors void ns_convertutf16toutf8(const prunichar*) - source a helper class that converts a utf-16 string to utf-8 parameters prunichar* astring void ns_convertutf16toutf8(const prunichar*, pruint32) - source parameters prunichar* astring pruint32 alength void ns_convertutf16toutf8(const nsastring_internal&) - source parameters nsastring_internal& astring operator= ...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
NS_ConvertUTF8toUTF16
methods constructors void ns_convertutf8toutf16(const char*) - source parameters char* acstring void ns_convertutf8toutf16(const char*, pruint32) - source parameters char* acstring pruint32 alength void ns_convertutf8toutf16(const nsacstring_internal&) - source parameters nsacstring_internal& acstring operator= nsautostring& operator=(const nsautostring&) - source parameters ...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
NS_LossyConvertUTF16toASCII
methods constructors void ns_lossyconvertutf16toascii(const prunichar*) - source a helper class that converts a utf-16 string to ascii in a lossy manner parameters prunichar* astring void ns_lossyconvertutf16toascii(const prunichar*, pruint32) - source parameters prunichar* astring pruint32 alength void ns_lossyconvertutf16toascii(const nsastring_internal&) - source parameters nsastrin...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsAdoptingCString
methods constructors void nsadoptingcstring() - source void nsadoptingcstring(char*, pruint32) - source parameters char* str pruint32 length void nsadoptingcstring(const nsadoptingcstring&) - source parameters nsadoptingcstring& str operator= nsadoptingcstring& operator=(const nsadoptingcstring&) - source parameters nsadoptingcstring& str nsxpidlcstring& operator=(const nsxpi...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsAdoptingString
methods constructors void nsadoptingstring() - source void nsadoptingstring(prunichar*, pruint32) - source parameters prunichar* str pruint32 length void nsadoptingstring(const nsadoptingstring&) - source parameters nsadoptingstring& str operator= nsadoptingstring& operator=(const nsadoptingstring&) - source parameters nsadoptingstring& str nsxpidlstring& operator=(const nsxp...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsAutoString
methods constructors void nsautostring() - source constructors void nsautostring(prunichar) - source parameters prunichar c void nsautostring(const prunichar*, pruint32) - source parameters prunichar* data pruint32 length void nsautostring(const nsautostring&) - source parameters nsautostring& str void nsautostring(const nsastring_internal&) - source parameters nsastring_inte...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsCAutoString
methods constructors void nscautostring() - source constructors void nscautostring(char) - source parameters char c void nscautostring(const char*, pruint32) - source parameters char* data pruint32 length void nscautostring(const nscautostring&) - source parameters nscautostring& str void nscautostring(const nsacstring_internal&) - source parameters...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsCString
methods constructors void nscstring() - source constructors void nscstring(char) - source parameters char c void nscstring(const char*, pruint32) - source parameters char* data pruint32 length void nscstring(const nscstring&) - source parameters nscstring& str void nscstring(const nscsubstringtuple&) - source parameters nscsubstringtuple& tuple void nscstring(const nsacstr...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsCountedRef
nscountedref has a role similar to nsrefptr but does not require that the handle is a pointer to an object that has addref() and release()
methods.
...nscountedref<t> is derived from nsautoref<t> and so inherits its
methods.
...in order to use nscountedref<t> for a class t associated with a particular resource type, the type of the handle to the resource and the
methods for referencing and releasing the resource must be provided for class t.
nsDependentCString
methods constructors nsdependentcstring(const char*, const char*) - source parameters char* start a pointer to the start of the string.
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsDependentString
methods constructors void nsdependentstring(const prunichar*, const prunichar*) - source constructors parameters prunichar* start prunichar* end void nsdependentstring(const prunichar*, pruint32) - source parameters prunichar* data pruint32 length void nsdependentstring(const prunichar*) - source parameters prunichar* data void nsdependentstring(const nsastring_internal&) - source ...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsFixedCString
methods constructors void nsfixedcstring(char*, pruint32) - source @param data fixed-size buffer to be used by the string (the contents of this buffer may be modified by the string) @param storagesize the size of the fixed buffer @param length (optional) the length of the string already contained in the buffer parameters char* data pruint32 storagesize void nsfixedcstring(char*, pruint32, pruin...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsFixedString
methods constructors void nsfixedstring(prunichar*, pruint32) - source @param data fixed-size buffer to be used by the string (the contents of this buffer may be modified by the string) @param storagesize the size of the fixed buffer @param length (optional) the length of the string already contained in the buffer parameters prunichar* data pruint32 storagesize void nsfixedstring(prunichar*, pr...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsMemory
};
methods alloc the alloc function allocates a block of memory of a particular size.
... remarks to use the
methods in this class, you must link your component or application against the xpcom glue library.
... the static
methods defined on this class are not frozen.
nsPromiseFlatCString
methods constructors void nspromiseflatcstring(const nsacstring_internal&) - source parameters nsacstring_internal& str void nspromiseflatcstring(const nscsubstringtuple&) - source parameters nscsubstringtuple& tuple operator= nscstring& operator=(const nscstring&) - source parameters nscstring& str nsacstring_internal& operator=(char) - source parameters char c nsacstring...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsPromiseFlatString
methods constructors void nspromiseflatstring(const nsastring_internal&) - source parameters nsastring_internal& str void nspromiseflatstring(const nssubstringtuple&) - source parameters nssubstringtuple& tuple operator= nsstring& operator=(const nsstring&) - source parameters nsstring& str nsastring_internal& operator=(prunichar) - source parameters prunichar c nsastring_...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsString
methods constructors void nsstring() - source constructors void nsstring(prunichar) - source parameters prunichar c void nsstring(const prunichar*, pruint32) - source parameters prunichar* data pruint32 length void nsstring(const nsstring&) - source parameters nsstring& str void nsstring(const nssubstringtuple&) - source parameters nssubstringtuple& tuple void nsstring(con...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsXPIDLCString
methods constructors void nsxpidlcstring() - source void nsxpidlcstring(const nsxpidlcstring&) - source parameters nsxpidlcstring& str operator const char* char* operator const char*() const - source operator[] char operator[](print32) const - source parameters print32 i char operator[](pruint32) const - source parameters pruint32 i operator= nsxpidlcstring& operat...
...@return offset in string, or knotfound parameters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source parameters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsXPIDLString
methods constructors void nsxpidlstring() - source void nsxpidlstring(const nsxpidlstring&) - source parameters nsxpidlstring& str operator const prunichar* prunichar* operator const prunichar*() const - source operator[] prunichar operator[](print32) const - source parameters print32 i prunichar operator[](pruint32) const - source parameters pruint32 i operator= n...
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this
methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...ng& aresult pruint32 acount setcharat prbool setcharat(prunichar, pruint32) - source set a char inside this string at given index @param achar is the char you want to write into this string @param anindex is the ofs where you want to write the given char @return true if successful parameters prunichar achar pruint32 aindex stripchars void stripchars(const char*) - source these
methods are used to remove all occurrences of the characters found in aset from this string.
nsICookieService
netwerk/cookie/public/nsicookieservice.idlscriptable provides
methods for setting and getting cookies in the context of a page load.
... inherits from: nsisupports last changed in gecko 1.9 (firefox 3) see nsicookiemanager and nsicookiemanager2 for
methods to manipulate the cookie database directly.
...
methods getcookiestring() get the complete cookie string associated with the uri.
nsIDOMWindowUtils
dom/interfaces/base/nsidomwindowutils.idlscriptable this interface is a dom utility interface that provides useful dom
methods and attributes.
...
methods activatenativemenuitemat() see nsiwidget.activatenativemenuitemat().
...you can then use that object with dom
methods that use the file api.
nsIDownloadProgressListener
as the states of downloads change, the
methods described here are called by the download manager so your code can take whatever steps it needs to.
...rather, the developer must create an object with the
methods provided below to implement it.
...
methods ondownloadstatechange() called when the status of a particular download changes.
nsIFeedProcessor
methods parseasync() parses a feed asynchronously.
... the caller must then call the processor's nsistreamlistener
methods to drive the parsing process.
... you must not call any of the other parsing
methods on the nsifeedprocessor interface during an asynchronous parse.
nsIJSCID
js/src/xpconnect/idl/xpcjsid.idlscriptable this interface provides
methods to instantiate a component and access service components.
... inherits from: nsijsid last changed in gecko 1.7 method overview nsisupports createinstance(); nsisupports getservice();
methods createinstance() nsisupports createinstance(); parameters none.
... return value see also see components.classes for usage patterns of the createinstance() and getservice()
methods.
nsIJSID
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) the following
methods return objects that implement this interface: components.interfaces.name components.classes[contract] components.interfacesbyid[uuid] components.classesbyid[cid] the first two cases create a named jsid while the last two cases create an unnamed jsid.
...
methods equals() this method determines if this nsijsid has the same nsid as another nsijsid.
... tostring() this
methods returns a string representation of the object.
nsILocalFile
xpcom/io/nsilocalfile.idlscriptable this interface adds
methods to nsifile that are particular to a file that is accessible via the local file system.
...
methods native code only!
... remarks the
methods initwithnativepath() and appendrelativenativepath() take string valued parameters that are encoded using the native character encoding.
SVGSVGElement - Web APIs
the svgsvgelement interface provides access to the properties of <svg> elements, as well as
methods to manipulate them.
... this interface contains also various miscellaneous commonly-used utility
methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.
...
methods this interface also inherits
methods from its parent, svggraphicselement and also implements the ones from svgzoomandpan, svgfittoviewbox, and windoweventhandlers.
SVGTransform - Web APIs
interface overview also implement none
methods void setmatrix(in svgmatrix matrix) void settranslate(in float tx, in float ty) void setscale(in float sx, in float sy) void setrotate(in float angle, in float cx, in float cy) void setskewx(in float angle) void setskewy(in float angle) properties readonly unsigned short type readonly float angle readonly svgmatrix m...
...in case the matrix object is changed directly (i.e., without using the
methods on the svgtransform interface itself) then the type of the svgtransform changes to svg_transform_matrix.
...
methods name & arguments return description setmatrix(in svgmatrix matrix) void sets the transform type to svg_transform_matrix, with parameter matrix defining the new transformation.
SVGTransformable - Web APIs
svg transformable interface interface svgtransformable contains properties and
methods that apply to all elements which have attribute transform.
... interface overview also implement none
methods none properties readonly svganimatedtransformlist transform normative document svg 1.1 (2nd edition) properties name type description transform svganimatedtransformlist corresponds to attribute transform on the given element.
...
methods the svgtransformable interface do not provide any specific
methods.
Sensor APIs - Web APIs
the examples below show three
methods for detecting sensor apis.
...this interface cannot be used directly, instead it provides properties and
methods accessed by interfaces that inherit from it.
...instead it provides properties, event handlers, and
methods accessed by interfaces that inherit from it.
Storage Access API - Web APIs
the api provides
methods that allow embedded resources to check whether they currently have access to their first-party storage, and to request access to their first-party storage from the user agent.
... storage access api
methods the storage api
methods are implemented on the document interface: document.hasstorageaccess() returns a promise that resolves with a boolean value indicating whether the document has access to its first-party storage.
... note: user interaction propagates to the promise returned by both of these
methods, allowing the callers to take actions that require user interaction without requiring a second click from the user.
URL - Web APIs
methods tostring() returns a usvstring containing the whole url.
... static
methods createobjecturl() returns a domstring containing a unique blob url, that is a url with blob: as its scheme, followed by an opaque string uniquely identifying the object in the browser.
... working draft added the static
methods url.createobjecturl() and url.revokeobjecturl().
WebGL2RenderingContext.uniform[1234][uif][v]() - Web APIs
the webgl2renderingcontext.uniform[1234][uif][v]()
methods of the webgl api specify values of uniform variables.
...possible types: a number for unsigned integer values (
methods with ui), for integer values (
methods with i), or for floats (
methods with f).
... a uint32array for unsigned integer vector
methods (
methods with uiv).
Writing a WebSocket server in C# - Web APIs
methods: start() system.net.sockets.tcpclient accepttcpclient() waits for a tcp connection, accepts it and returns it as a tcpclient object.
...em; class server { public static void main() { tcplistener server = new tcplistener(ipaddress.parse("127.0.0.1"), 80); server.start(); console.writeline("server has started on 127.0.0.1:80.{0}waiting for a connection...", environment.newline); tcpclient client = server.accepttcpclient(); console.writeline("a client connected."); } } tcpclient
methods: system.net.sockets.networkstream getstream() gets the stream which is the communication channel.
... networkstream
methods: write(byte[] buffer, int offset, int size) writes bytes from buffer, offset and size determine length of message.
Writing a WebSocket server in Java - Web APIs
l.regex.matcher; import java.util.regex.pattern; public class websocket { public static void main(string[] args) throws ioexception, nosuchalgorithmexception { serversocket server = new serversocket(80); try { system.out.println("server has started on 127.0.0.1:80.\r\nwaiting for a connection..."); socket client = server.accept(); system.out.println("a client connected."); socket
methods: java.net.socket getinputstream() returns an input stream for this socket.
... outputstream
methods: write(byte[] b, int off, int len) writes len bytes from the specified byte array starting at offset off to this output stream.
... inputstream
methods: read(byte[] b, int off, int len) reads up to len bytes of data from the input stream into an array of bytes.
Web Video Text Tracks Format (WebVTT) - Web APIs
e interface code is given below which can be used to expose the webvtt regions in dom api: enum scrollsetting { "" /* none */, "up" }; [constructor] interface vttregion { attribute double width; attribute long lines; attribute double regionanchorx; attribute double regionanchory; attribute double viewportanchorx; attribute double viewportanchory; attribute scrollsetting scroll; };
methods and properties the
methods used in webvtt are those which are used to alter the cue or region as the attributes for both interfaces are different.
... we can categorize them for better understanding relating to each interface in webvtt: vttcue the
methods which are available in this interface are: getcueashtml to get the html of that cue.
... vttregion the
methods used for region are listed below along with description of their functionality: scrollsetting: for adjusting the scrolling setting of all nodes present in given region.
Functions and classes available to Web Workers - Web APIs
by default,
methods and properties of window are not available to them, but dedicatedworkerglobalscope, like window, implements windowtimers and windowbase64.
... comparison of the properties and
methods of the different type of workers function dedicated workers shared workers service workers chrome workers outside workers atob() yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on window btoa() yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on window clearinterval() yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on window cleartimeout() yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on workerglobalscope yes, on windo...
... 20 (20) no support no support no support url workers can use the static
methods url.createobjecturl and url.revokeobjecturl with blob objects accesible to the worker.
Window: popstate event - Web APIs
these
methods and their corresponding events can be used to add data to the history stack which can be used to reconstruct a dynamically generated page, or to otherwise alter the state of the content being presented while remaining on the same document.
... if current-entry's title wasn't set using one of the history api
methods (pushstate() or replacestate(), set the entry's title to the string returned by its document.title attribute.
... if the history traversal is being performed with replacement enabled, the entry immediately prior to the destination entry (taking into account the delta parameter on
methods such as go()) is removed from the history stack.
XRInputSourceArray - Web APIs
in addition to being able to access the input sources in the list using standard array notation (that is, with index numbers insize square brackets),
methods are available to allow the use of iterators and the foreach() method is also available.
...
methods the following
methods are available on xrinputsourcearray objects.
... in addition to these
methods, you may use array notation to access items in the list by index for example, the snippet of code below calls a function handleinput(), passing into it the first item in the input source list, if the list isn't empty.
XRSession - Web APIs
the webxr device api's xrsession interface represents an ongoing xr session, providing
methods and properties used to interact with and control the session.
... with xrsession
methods, you can poll the viewer's position and orientation (the xrviewerpose), gather information about the user's environment, and present imagery to the user.
...
methods xrsession provides the following
methods in addition to those inherited from its parent interface, eventtarget.
Cognitive accessibility - Accessibility
headings are more obvious navigational aids compared to other
methods to identify page content sections (borders, whitespace, horizontal rules, etc.).
... multiple ways to find content different users prefer different
methods of finding information, so it is important to provide multiple ways for users to locate content on your site.
...
methods to achieve this include: using short, simple words.
Box alignment for block, absolutely positioned and table layout - CSS: Cascading Style Sheets
the box alignment specification details how alignment works in various layout
methods.
...as this page aims to detail things which are specific to block layout and box alignment, it should be read in conjunction with the main box alignment page, which details the common features of box alignment across layout
methods.
... aligning in these layout
methods today as we do not currently have browser support for box alignment in block layout, your options for alignment are either to use one of the existing alignment
methods or, to make even a single item inside a container a flex item in order to use the alignment properties as specified in flexbox.
Box alignment in grid layout - CSS: Cascading Style Sheets
the box alignment specification details how alignment works in various layout
methods.
... as this page aims to detail things which are specific to css grid layout and box alignment, it should be read in conjunction with the main box alignment page which details the common features of box alignment across layout
methods.
...this allows them to be used for other layout
methods where a gap between items makes sense.
CSS Box Alignment - CSS: Cascading Style Sheets
older alignment
methods css traditionally had very limited alignment capabilities.
...there are also some key concepts which are common to all layout
methods.
... baseline first baseline last baseline baseline content alignment — specifying a baseline alignment value for justify-content or align-content — works in layout
methods that lay items out in rows.
Color picker tool - CSS: Cascading Style Sheets
this.r = obj.r; this.g = obj.g; this.b = obj.b; this.a = obj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.format = 'hsl'; }; /*==========
methods to set color properties ==========*/ color.prototype.isvalidrgbvalue = function isvalidrgbvalue(value) { return (typeof(value) === 'number' && isnan(value) === false && value >= 0 && value <= 255); }; color.prototype.setrgba = function setrgba(red, green, blue, alpha) { if (this.isvalidrgbvalue(red) === false || this.isvalidrgbvalue(green) === false || this.isvalidrgbvalue(blue)...
...valid !== true) return; if (value[0] === '#') value = value.slice(1, value.length); if (value.length === 3) value = value.replace(/([0-9a-f])([0-9a-f])([0-9a-f])/i,'$1$1$2$2$3$3'); this.r = parseint(value.substr(0, 2), 16); this.g = parseint(value.substr(2, 2), 16); this.b = parseint(value.substr(4, 2), 16); this.alpha = 1; this.rgbtohsv(); }; /*========== conversion
methods ==========*/ color.prototype.converttohsl = function converttohsl() { if (this.format === 'hsl') return; this.setformat('hsl'); this.rgbtohsl(); }; color.prototype.converttohsv = function converttohsv() { if (this.format === 'hsv') return; this.setformat('hsv'); this.rgbtohsv(); }; /*========== update
methods ==========*/ color.prototype.updatergb = function updaterg...
...lta) { if (cmax === red ) { hue = ((green - blue) / delta); } if (cmax === green ) { hue = 2 + (blue - red) / delta; } if (cmax === blue ) { hue = 4 + (red - green) / delta; } if (cmax) saturation = delta / x; } this.hue = 60 * hue | 0; if (this.hue < 0) this.hue += 360; this.saturation = (saturation * 100) | 0; this.lightness = (lightness * 100) | 0; }; /*========== get
methods ==========*/ color.prototype.gethexa = function gethexa() { var r = this.r.tostring(16); var g = this.g.tostring(16); var b = this.b.tostring(16); if (this.r < 16) r = '0' + r; if (this.g < 16) g = '0' + g; if (this.b < 16) b = '0' + b; var value = '#' + r + g + b; return value.touppercase(); }; color.prototype.getrgba = function getrgba() { var rgb = '(' + this.r + ', ' +...
Typical use cases of Flexbox - CSS: Cascading Style Sheets
you can read more about the difference between flexbox and css grid layout in relationship of flexbox to other layout
methods, where we discuss how flexbox fits into the overall picture of css layout.
... card layout pushing footer down whether you use flexbox or css grid to lay out a list of card components, these layout
methods only work on direct children of the flex or grid component.
... think about the best way to present the content that you have and then see how flexbox or other layout
methods can help you achieve it.
Box alignment in CSS Grid Layout - CSS: Cascading Style Sheets
this specification details how alignment should work in all the different layout
methods.
... layout
methods will conform to the specification where possible and implement individual behavior based on their differences (features and constraints).
... while the specification currently specifies alignment details for all layout
methods, browsers have not fully implemented all of the specification; however, the css grid layout method has been widely adopted.
CSP: script-src - HTTP
'unsafe-eval' allows the use of eval() and similar
methods for creating code from strings.
... <script>var inline = 1;</script> unsafe eval expressions the 'unsafe-eval' source expression controls several script execution
methods that create code from strings.
... if 'unsafe-eval' isn't specified with the script-src directive, the following
methods are blocked and won't have any effect: eval() function() when passing a string literal like to
methods like: window.settimeout("alert(\"hello world!\");", 500); window.settimeout window.setinterval window.setimmediate window.execscript (ie < 11 only) strict-dynamic the 'strict-dynamic' source expression specifies that the trust explicitly given to a script present in the markup, by accompanying it with a nonce or a hash, shall be propagated to all the scripts loaded by that root script.
CSP: style-src - HTTP
'unsafe-eval' allows the use of eval() and similar
methods for creating code from strings.
... <style>#inline-style { background: red; }</style> unsafe style expressions the 'unsafe-eval' source expression controls several style
methods that create style declarations from strings.
... if 'unsafe-eval' isn't specified with the style-src directive, the following
methods are blocked and won't have any effect: cssstylesheet.insertrule() cssgroupingrule.insertrule() cssstyledeclaration.csstext specifications specification status comment content security policy level 3the definition of 'style-src' in that specification.
OPTIONS - HTTP
request has body no successful response has body yes safe yes idempotent yes cacheable no allowed in html forms no syntax options /index.html http/1.1 options * http/1.1 examples identifying allowed request
methods to find out which request
methods a server supports, one can use the curl command-line program to issue an options request: curl -x options https://example.org -i the response then contains an allow header that holds the allowed
methods: http/1.1 204 no content allow: options, get, head, post cache-control: max-age=604800 date: thu, 13 oct 2016 11:45:00 gmt server: eos (lax004/2813) preflig...
...in this example, the server response says that: access-control-allow-origin the https://foo.example origin is permitted to request the bar.example/resources/post-here/ url via the following: access-control-allow-
methods post, get, and options are permitted
methods for the url.
... http/1.1 204 no content date: mon, 01 dec 2008 01:15:39 gmt server: apache/2.0.61 (unix) access-control-allow-origin: https://foo.example access-control-allow-
methods: post, get, options access-control-allow-headers: x-pingother, content-type access-control-max-age: 86400 vary: accept-encoding, origin keep-alive: timeout=2, max=100 connection: keep-alive specifications specification title rfc 7231, section 4.3.7: options hypertext transfer protocol (http/1.1): semantics and content ...
Meta programming - JavaScript
traps the
methods that provide property access.
...n(target, name) { return '[[' + name + ']]' } }) let proxy = revocable.proxy console.log(proxy.foo) // "[[foo]]" revocable.revoke() console.log(proxy.foo) // typeerror is thrown proxy.foo = 1 // typeerror again delete proxy.foo // still typeerror typeof proxy // "object", typeof doesn't trigger any trap reflection reflect is a built-in object that provides
methods for interceptable javascript operations.
... the
methods are the same as those of the proxy handlers.
static - JavaScript
static
methods aren't called on instances of the class.
... calling static
methods from another static method in order to call a static method within another static method of the same class, you can use the this keyword.
... class staticmethodcall { static staticmethod() { return 'static method has been called'; } static anotherstaticmethod() { return this.staticmethod() + ' from another static method'; } } staticmethodcall.staticmethod(); // 'static method has been called' staticmethodcall.anotherstaticmethod(); // 'static method has been called from another static method' calling static
methods from a class constructor and other
methods static
methods are not directly accessible using the this keyword from non-static
methods.
Rest parameters - JavaScript
formally defined in function expression), while the arguments object contains all arguments passed to the function; the arguments object is not a real array, while rest parameters are array instances, meaning
methods like sort, map, foreach or pop can be applied on it directly; the arguments object has additional functionality specific to itself (like the callee property).
...each one of them is then multiplied by the first parameter, and the array is returned: function multiply(multiplier, ...theargs) { return theargs.map(element => { return multiplier * element }) } let arr = multiply(2, 1, 2, 3) console.log(arr) // [2, 4, 6] use with the arguments object array
methods can be used on rest parameters, but not on the arguments object: function sortrestargs(...theargs) { let sortedargs = theargs.sort() return sortedargs } console.log(sortrestargs(5, 3, 7, 1)) // 1, 3, 5, 7 function sortarguments() { let sortedargs = arguments.sort() return sortedargs // this will never happen } console.log(sortarguments(5, 3, 7, 1)) // throws a typeerror (arguments.s...
...ort is not a function) to use array
methods on the arguments object, it must be converted to a real array first.
Array.prototype.toLocaleString() - JavaScript
the elements are converted to strings using their tolocalestring
methods and these strings are separated by a locale-specific string (such as a comma “,”).
... return r; } }); } if you need to support truly obsolete javascript engines that don't support object.defineproperty, it's best not to polyfill array.prototype
methods at all, as you can't make them non-enumerable.
... examples using locales and options the elements of the array are converted to strings using their tolocalestring
methods.
BigInt - JavaScript
007199254740991) // ↪ 9007199254740991n const hugestring = bigint("9007199254740991") // ↪ 9007199254740991n const hugehex = bigint("0x1fffffffffffff") // ↪ 9007199254740991n const hugebin = bigint("0b11111111111111111111111111111111111111111111111111111") // ↪ 9007199254740991n bigint is similar to number in some ways, but also differs in a few key matters — it cannot be used with
methods in the built-in math object and cannot be mixed with instances of number in operations; they must be coerced to the same type.
... static
methods bigint.asintn() wraps a bigint value to a signed integer between -2width-1 and 2width-1 - 1.
... instance
methods bigint.prototype.tolocalestring() returns a string with a language-sensitive representation of this number.
BigInt64Array - JavaScript
once established, you can reference elements in the array using the object's
methods, or by using standard array index syntax (that is, using bracket notation).
... static
methods bigint64array.from() creates a new bigint64array from an array-like or iterable object.
... instance
methods bigint64array.prototype.copywithin() copies a sequence of array elements within the array.
Tree Box Objects - Archive of obsolete content
note: it is not necessary to run tree.boxobject.queryinterface(components.interfaces.nsitreeboxobject) as shown in the code examples on this page because: let boxobject = tree.treeboxobject; note: is equivalent to: let boxobject = tree.boxobject; boxobject.queryinterface("components.interfaces.nsitreeboxobject"); scrolling the tree you can also scroll the tree using four different
methods, similar to those available for listboxes.
... additional scroll
methods include the scrollbylines(), scrollbypages() and ensurerowisvisible() functions.
XUL Questions and Answers - Archive of obsolete content
as an extension author, you have at least two options: use dom
methods to dynamically create or rearrange elements file an enhancement request in bugzilla to have extra ids added.
...json string) from the server, parsing it on client, and building the menupopup using dom
methods (such as document.createelementns).
action - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] used to specify the content that should be generated for each matching result from a query.
...es inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
assign - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] for xml templates, specifies an additional variable to assign a value to.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
bbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a horizontal box that is baseline aligned.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
binding - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] should be contained within a bindings element.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
bindings - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] used to specify a set of variable bindings for a rule.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
box - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container element which can contain any number of child elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
broadcaster - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a broadcaster is used when you want multiple elements to share one or more attribute values, or when you want elements to respond to a state change.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
broadcasterset - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container element for broadcaster elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
caption - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a header for a groupbox.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
checkbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element that can be turned on and off.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
colorpicker - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a palette of colors from which a user may select by clicking on one of the grid cells.
... value property gets and sets color attribute
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
column - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single column in a columns element.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
columns - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] defines the columns of a grid.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
command - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a command element can be used to invoke an operation that can come from multiple sources.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
commandset - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is not displayed and serves as a container for command elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
conditions - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element should appear directly inside a rule element and is used to define conditions for the rule.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
content - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] Éste elemento debería pertenecer a query ("consulta").
... métodos inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattri...
datepicker - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a datepicker allows the user to enter a date.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
deck - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element that displays only one of its children at a time.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
description - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used to create a block of text.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
dialogheader - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a heading row for a dialog box.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
dropmarker - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a dropmarker is a button with an arrow which will reveal more details when pressed.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
grid - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a grid is a layout type that arranges elements in rows and columns.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
grippy - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element that may be used inside a splitter which can be used to collapse a sibling element of the splitter.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
groupbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] the groupbox is used to group related elements together.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
hbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container element which can contain any number of child elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
image - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] summary an element that displays an image, much like the html img element.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
key - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] the key element defines a window-global keyboard shortcut and must be placed inside a keyset element.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
keyset - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container element for key elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
label - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used to provide a label for a control element.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
listcell - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single cell of a listbox.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
listcol - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a column in a listbox.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
listcols - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container for the columns of a listbox, each of which are created with the listcol element.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
listhead - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a header row of a listbox.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
listheader - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a header for a single column in a listbox.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
listitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single row in a listbox.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
member - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] used within a rule's conditions element to match elements that are containers or are contained within another element.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
menubar - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container that usually contains menu elements.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
menuitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single choice in a menupopup element.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
menuseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] used to create a separator between menu items.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
observes - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] the observes element can be used to listen to a broadcaster and receive events and attributes from it.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
page - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] similar to a window, except it should be used for xul files that are to be loaded into an iframe.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
param - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] for sql templates, used to bind values to parameters specified within an sql statement.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
popupset - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container for menupopup, panel and tooltip elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
progressmeter - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a meter which can be used to display the progress of a lengthy operation.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
query - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] used to specify the query for a template.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
queryset - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container for query elements when more than one query is used.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
radio - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element that can be turned on and off.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
resizer - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element used for window resizing.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
richlistitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an individual item in a richlistbox.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
row - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single row in a rows element.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
rows - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] defines the rows of a grid.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
rule - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a rule is used in a template.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
script - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] much like the html script element, this is used to declare a script to be used by the xul window.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
scrollbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] when a container's contents which are larger that the size of the container, scroll bars may be placed at the side of the container to allow the user to scroll around in the container.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
scrollcorner - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is used for the small box where the horizontal and vertical scrollbars meet.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
separator - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] creates a small separating gap between elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
spacer - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element that takes up space but does not display anything.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
spinbuttons - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] spin buttons are two arrows, one to increase a value and one to decrease a value.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
splitter - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element which should appear before or after an element inside a container.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
stack - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element that renders its children on top of each other.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
statusbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] an element used to create a status bar, usually placed along the bottom of a window.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
<statusbarpanel> - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] firefox 4 note the status bar has been removed.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
stringbundleset - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container for stringbundle elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
tabbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container used to display a set of tabbed pages of elements.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
tabpanel - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a individual panel in a tabpanels element.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
tabpanels - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container to hold the set of pages in a tabbox.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
template - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] used to declare a template for rule-based construction of elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
textnode - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] normally when substituting rdf resources in template rules, you place the rdf property name inside an attribute value preceded with rdf:.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
timepicker - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] the timepicker is used to allow the user to enter a time.
...
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
titlebar - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] boxes created with the titlebar element behave just like a normal window titlebar: when the element is clicked and dragged, the window moves with it.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
toolbargrippy - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] not in firefox the notch on the side of a toolbar which can be used to collapse and expand it.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
toolbaritem - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] firefox only an item that appears on a toolbar.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
toolbarpalette - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] firefox only the item is a palette of available toolbar items.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
toolbarseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] creates a separator between groups of toolbar items.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
toolbarset - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] firefox only this element is used as a container for custom toolbars, which are added in the custom toolbar dialog.
...ies inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
toolbarspacer - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] firefox only a space between toolbar items.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
toolbarspring - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] firefox only a flexible space between toolbar items.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature,...
treecell - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single cell in a tree.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
treechildren - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] this element is the body of the tree.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
treecol - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a column of a tree.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
treecols - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a group of treecol elements.
... inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
treeitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a treeitem should be placed inside a treechildren element and should contain treerow elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
treerow - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a single row in a tree.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
treeseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] used to place a separator row in a tree.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
triple - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a triple can be included inside a rule's conditions element.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
vbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] a container element which can contain any number of child elements.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
where - Archive of obsolete content
« xul reference home [ examples | attributes | properties |
methods | related ] indicate a condition that must match for a template result to be used.
...s inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width
methods inherited
methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...