Search completed in 1.06 seconds.
Enabling the behavior - retrieving tinderbox status - Archive of obsolete content
var gxmlhttprequest; function loadtinderboxstatus() { gxmlhttprequest = new xmlhttprequest(); gxmlhttprequest.onload = updatetinderboxstatus; gxmlhttprequest.open("get", "http://tinderbox.mozilla.org/seamonkey/panel.html"); gxmlhttprequest.send(null); } xmlhttprequest is an interface in mozilla for
retrieving documents via http.
Index - Web APIs
1717 htmlimageelement.crossorigin api, cors, cross-origin, crossorigin, html dom, htmlimageelement, image, property, reference, security, origin the htmlimageelement interface's crossorigin attribute is a string which specifies the cross-origin resource sharing (cors) setting to use when
retrieving the image.
...these actions include
retrieving, setting, adding to, and removing.
... 2199 keyboard.getlayoutmap() api, keyboard api, keyboard lock, keyboard map, method, reference, getlayoutmap(), keyboard the getlayoutmap() method of the keyboard interface returns a promise that resolves with an instance of keyboardlayoutmap which is a map-like object with functions for
retrieving the strings associated with specific physical keys.
...And 3 more matches
Extension Versioning, Update and Compatibility - Archive of obsolete content
valid application versions automatic add-on update checking applications will periodically check for updates to installed add-ons by
retrieving the updateurl.
... and all popular (scripting) languages offer support, for examples: python, perl: cpan digest, php signing update manifests if you wish to serve your update rdf over regular http, gecko 1.9 based applications will require that you digitally sign the update manifest to ensure that it's information isn't tampered with between you creating it and applications
retrieving it.
Using content preferences - Archive of obsolete content
the content preferences service, implemented by nsicontentprefservice, offers functions for setting and
retrieving preferences for specific sites or in the global preference space; global preferences are used whenever a site-specific preference isn't available.
...example: setting and
retrieving preferences this example demonstrates how to save a preference and then retrieve its value.
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
internet explorer has several content manipulation methods that are nonstandard and unsupported in mozilla, including
retrieving the value, inserting text and inserting elements adjacent to a node, such as getadjacentelement and insertadjacenthtml.
... xml: <?xml version="1.0"?> <myxmldoc xmlns:myns="http://myfoo.com"> <myns:foo>bar</myns:foo> </myxmldoc> javascript: var myxmldoc = getxmldocument().documentelement; alert(myxmldoc.childnodes.length); the first line of javascript loads the xml document and accesses the root element (myxmldoc) by
retrieving the documentelement.
Additional Navigation - Archive of obsolete content
« previousnext »
retrieving literals the triples used so far have all had variables in both the subject and object.
...
retrieving parents a very uncommon form of navigation you can also do is to navigate upwards using a member tag, that is to get all the parents of a node, as in this example: <query> <content uri="?start"/> <member container="?parent" child="?start"/> </query> this might be used, for instance, to start at a particular photo and find all of the containers that it is inside.
Box Objects - Archive of obsolete content
retrieving position and size the box object provides six read only properties, x, y, screenx, screeny, width and height, for determining the currently displayed position and size of an element.
... note that
retrieving these values will return the size only if it was explicitly specified.
NPP_StreamAsFile - Archive of obsolete content
if an error occurs while
retrieving the data or writing the file, fname may be null.
... if an error occurs while
retrieving the data or writing the file, the file name (fname) is null.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
392 sql codingscripting, database, glossary, sql sql (structured query language) is a descriptive computer language designed for updating,
retrieving, and calculating data in table-based databases.
... 513 xquery codingscripting, glossary, xml, xquery xquery is a computer language for updating,
retrieving, and calculating data in xml databases.
Adding a new event
this is useful for widget notifying dom tree of something or
retrieving something from dom tree.
...this method is used for
retrieving sub class pointer avoiding to use static_cast.
Process scripts
retrieving the content frame message manager for a content window when an observer notification in a process script contains a content document or window it can be useful to not use talk through the child/parent process message managers but through the window's content frame message manager, e.g.
... this can be achieved by traversing the docshell tree up to the top window and then
retrieving its content message manager, as follows: function contentmmfromcontentwindow(window) { let tree = window.queryinterface(ci.nsiinterfacerequestor).getinterface(ci.nsidocshelltreeitem); let top = tree.sametyperoottreeitem; let iface = queryinterface(ci.nsidocshell).queryinterface(ci.nsiinterfacerequestor); return iface.getinterface(ci.nsicontentframemessagemanager); } this is intended for unprivileged pages running in a content process.
Sqlite.jsm
this example demonstrates
retrieving a row without using the onrow function parameter, and instead, using the conn.execute result.
... this example also demonstrates
retrieving the primary key row id of the last inserted row.
An overview of NSS Internals
all of this requires storing, looking up, and
retrieving data.
...examples are
retrieving ocsp (online certificate status protocol) information or downloading a crl (certificate revocation list).
Index
all of this requires storing, looking up, and
retrieving data.
...examples are
retrieving ocsp (online certificate status protocol) information or downloading a crl (certificate revocation list).
Using the Places annotation service
the service stores these names in a separate table, and the fewer names there are, the more efficient
retrieving names will be.
... var ioservice = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ioservice.newuri("http://www.mozilla.org/", null, null); annotationservice.setpageannotation(uri, "my_extension/some_annotation", "this is the annotation value", 0, 0);
retrieving annotations there are corresponding getters for the setters above (see nsiannotationservice.idl for the exact declarations): from c++: getpageannotationstring(auri, aname); getpageannotationint32(auri, aname); getpageannotationint64(auri, aname); getpageannotationdouble(auri, aname); getpageannotationbinary(auri, aname, adata, adatalen, amimetype); getitemannotationstring(aitemid, an...
nsIDOMWindowUtils
nsidomelement elementfrompoint( in float ax, in float ay, in boolean aignorerootscrollframe, in boolean aflushlayout ); parameters ax ay aignorerootscrollframe whether or not to ignore the root scroll frame when
retrieving the element.
... aignorerootscrollframe whether or not to ignore the root scroll frame when
retrieving the nodes.
Element.getAttribute() - Web APIs
retrieving nonce values for security reasons, csp nonces from non-script sources, such as css selectors, and .getattribute("nonce") calls are hidden.
... let nonce = script.getattribute('nonce'); // returns empty string instead of
retrieving the nonce from the content attribute, use the nonce property: let nonce = script.nonce; specifications specification status comment domthe definition of 'getattribute()' in that specification.
Using FormData Objects - Web APIs
retrieving a formdata object from an html form to construct a formdata object that contains the data from an existing <form>, specify that form element when creating the formdata object: note: formdata will only use input fields that use the name attribute.
... var formdata = new formdata(someformelement); for example: var formelement = document.queryselector("form"); var request = new xmlhttprequest(); request.open("post", "submitform.php"); request.send(new formdata(formelement)); you can also append additional data to the formdata object between
retrieving it from a form and sending it, like this: var formelement = document.queryselector("form"); var formdata = new formdata(formelement); var request = new xmlhttprequest(); request.open("post", "submitform.php"); formdata.append("serialnumber", serialnumber++); request.send(formdata); this lets you augment the form's data before sending it along, to include additional information that's not necessarily user-editable.
Recommended Drag Types - Web APIs
for example, this sample text/uri-list data contains two links and a comment: http://www.mozilla.org #a second link http://www.example.com when
retrieving a dropped link, ensure you handle when multiple links are dragged, including any comments.
...similarly, when
retrieving the data, you must use the mozgetdataat() method.
IDBObjectStore.get() - Web APIs
this is for
retrieving specific records from an object store.
... // this is used a lot below db = dbopenrequest.result; // run the getdata() function to get the data from the database getdata(); }; function getdata() { // open a read/write db transaction, ready for
retrieving the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror = function(event) { note.innerhtml += '<li>transaction not opened due to error: ' + transaction.error + '</li>...
Using IndexedDB - Web APIs
start a transaction and make a request to do some database operation, like adding or
retrieving data.
... adding,
retrieving, and removing data before you can do anything with your new database, you need to start a transaction.
Keyboard API - Web APIs
keyboard mapping provides an interface for
retrieving the string generated by particular physical key on a keyboard to correctly identify that key to a user.
... keyboardlayoutmap a map-like object with functions for
retrieving the string associated with specific physical keys.
MediaStream Image Capture API - Web APIs
mediastream image capture concepts and usage the process of
retrieving an image or video stream happens as described below.
...though a mediastream holds several types of tracks and provides multiple methods for
retrieving them, the imagecapture constructor will throw a domexception of type notsupportederror if mediastreamtrack.kind is not "video".
Using the User Timing API - Web APIs
created mark = " + marks[i], 0); }
retrieving performance marks the performance interface has three methods to retrieve marks.
...created measure = " + measures[i], 1); }
retrieving performance measures the performance interface has three methods to retrieve measures.
User Timing API - Web APIs
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.
...
retrieving performance measures the performance interface has three methods that can be used to retrieve a measure: performance.getentries() returns all performance entries in the performance timeline.
request - Archive of obsolete content
for example, if you're
retrieving text content which was encoded as iso-8859-1 (latin 1), it will be given a content type of "utf-8" and certain characters will not display correctly.
platform/xpcom - Archive of obsolete content
initializes pending in initialize() adds our implementation of the nsirequest interface although request also implements nsisupports, there is no need to add it here, because the base class unknown declares support for nsisupports and this is accounted for when
retrieving objects.
Miscellaneous - Archive of obsolete content
var osstring = services.appinfo.os; detecting the host application and version // get the name of the application running us services.appinfo.name; // returns "firefox" for firefox services.appinfo.version; // returns "2.0.0.1" for firefox version 2.0.0.1
retrieving the version of an extension as specified in the extension's install.rdf components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("extension-guid@example.org", function(addon) { // this is an asynchronous callback function that might not be called immediately alert("my extension's version is " + addon.version); }); restarting firefox/thunderbird/seamonkey...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
the component implementation will include the methods for
retrieving the path or file for the extension's home directory: mylocation.prototype = { queryinterface: function(iid) { if (iid.equals(nsisupports)) return this; if (iid.equals(myilocation)) return this; components.returncode = components.results.ns_error_no_interface; return null; }, get locationfile() { return __location__.parent.parent; } } th...
Index of archived content - Archive of obsolete content
bookmark keywords build building transformiix standalone chromeless compiling the npruntime sample plugin in visual studio creating a firefox sidebar extension creating a microsummary creating a mozilla extension adding the structure conclusion enabling the behavior -
retrieving tinderbox status enabling the behavior - updating the status bar panel enabling the behavior - updating the status periodically finding the code to modify finding the file to modify making a mozilla installation modifiable making it into a dynamic overlay and packaging it up for distribution making it into a stati...
Creating a Mozilla Extension - Archive of obsolete content
contents prerequisites tinderbox making a mozilla installation modifiable finding the file to modify finding the code to modify adding the structure specifying the appearance enabling the behavior -
retrieving tinderbox status enabling the behavior - updating the status bar panel enabling the behavior - updating the status periodically making it into a static overlay making it into a dynamic overlay and packaging it up for distribution conclusion next » original document information author(s): myk melez last updated date: september 19, 2006 copyright information: portions of this con...
Running Tamarin acceptance tests - Archive of obsolete content
d_runner.sh, if it doesn't already exist on the phone in /data/local/tamarin $ adb push tamarin-redux/platform/android/android_runner.sh /data/local/tamarin/android_runner.sh $ adb shell 'chmod 777 /data/loca/android_runner.sh' test it out with a simple .abc or no args for usage (should return exitcode=0) $ tamarin-redux/platform/android/android_shell.py hello.abc hello exitcode=0 test it out by
retrieving the version information of the shell on the android device $ $avm -dversion shell 1.4 debug build 6299:455bca954565 features avmsystem_32bit;avmsystem_unaligned_int_access;avmsystem_little_endian;avmsystem_arm;avmsystem_unix; avmfeature_jit;avmfeature_abc_interp;avmfeature_selftest;avmfeature_eval;avmfeature_protect_jitmem; avmfeature_shared_gcheap;avmfeature_cache_gqcn;avmfeature_safepoints;avmf...
tree - Archive of obsolete content
this object implements the nsitreeboxobject interface and contains functions for
retrieving the cells at certain coordinates, redrawing cells and scrolling the tree.
Sending form data - Learn web development
on the server side:
retrieving the data whichever http method you choose, the server receives a string that will be parsed in order to get the data as a list of key/value pairs.
Client-side storage - Learn web development
new school: web storage and indexeddb the "easier" features we mentioned above are as follows: the web storage api provides a very simple syntax for storing and
retrieving smaller, data items consisting of a name and a corresponding value.
Fetching data from the server - Learn web development
previous overview: client-side web apis next another very common task in modern websites and applications is
retrieving individual data items from the server to update sections of a webpage without having to load an entire new page.
Client-side web APIs - Learn web development
fetching data from the server another very common task in modern websites and applications is
retrieving individual data items from the server to update sections of a webpage without having to load an entirely new page.
Arrays - Learn web development
first, create a string in your console: let mydata = 'manchester,london,liverpool,birmingham,leeds,carlisle'; now let's split it at each comma: let myarray = mydata.split(','); myarray; finally, try finding the length of your new array, and
retrieving some items from it: myarray.length; myarray[0]; // the first item in the array myarray[1]; // the second item in the array myarray[myarray.length-1]; // the last item in the array you can also go the opposite way using the join() method.
Useful string methods - Learn web development
retrieving a specific string character on a related note, you can return any character inside a string by using square bracket notation — this means you include square brackets ([]) on the end of your variable name.
JavaScript object basics - Learn web development
setting object members so far we've only looked at
retrieving (or getting) object members — you can also set (update) the value of object members by simply declaring the member you want to set (using dot or bracket notation), like this: person.age = 45; person['name']['last'] = 'cratchit'; try entering the above lines, and then getting the members again to see how they've changed, like so: person.age person['name']['last'] setting members doesn't just...
Server-side website programming - Learn web development
learning pathway getting started with server-side programming is usually easier than client-side development, because dynamic websites tend to perform a lot of very similar operations (
retrieving data from a database and displaying it in a page, validating user-entered data and saving it in a database, checking user permissions and logging users in, etc.), and are constructed using web frameworks that make these and other common web server operations easy.
Downloads.jsm
the downloads.jsm javascript code module provides a single entry point to interact with the downloading capabilities of the platform, including starting new downloads, controlling ongoing downloads, and
retrieving download-related configuration.
Mozilla DOM Hacking Guide
for example, getproperty() is used when
retrieving an attribute that was not defined in idl, and newresolve() is used when resolving for the first time an attribute or method that was not previously resolved.
NSPR Error Handling
this chapter describes the functions for
retrieving and setting errors and the error codes set by nspr.
NSS Sample Code sample4
* in a real app, this function should obtain the password using secure means * such as prompting an operator, or
retrieving it over a secure communication * channel */ char *passwdcb(pk11slotinfo *info, prbool retry, void *arg); int main(int argc, char **argv) { secstatus rv; certcertificate *cert = null; seckeypublickey *pubkey = null; seckeyprivatekey *pvtkey = null; int modulus_len, i, outlen; char *buf1 = null; char *buf2 = null; /* initia...
NSS Sample Code sample6
* in a real app, this function should obtain the password using secure means * such as prompting an operator, or
retrieving it over a secure communication * channel */ char *passwdcb(pk11slotinfo *info, prbool retry, void *arg); int main(int argc, char **argv) { secstatus rv; /* initialize nss */ pk11_setpasswordfunc(passwdcb); /* the nss db must be initialized read-write since we'll be creating * keys in it.
JS_DefineElement
getter jsnative or jspropertyop getproperty method for
retrieving the current property value.
Querying Places
bookmark queries there is a quick-start for doing simple bookmark queries in
retrieving part of the bookmarks tree.
Places
retrieving part of the bookmarks tree how to fetch a section of the bookmarks tree using queries.
Index
provides basic functionality for
retrieving elements at a specific position, searching for elements.
nsIArray
provides basic functionality for
retrieving elements at a specific position, searching for elements.
nsICacheEntryDescriptor
string getmetadataelement( in string key ); parameters key the key for
retrieving the meta data.
nsIClipboard
widget/nsiclipboard.idlscriptable this interface supports basic clipboard operations such as: setting,
retrieving, emptying, matching and supporting clipboard data.
nsIConsoleService
examples
retrieving the message array to retrieve the message array in gecko prior to version 19: function getconsolemessagearray() { var consoleservice = components.classes["@mozilla.org/consoleservice;1"] .getservice(components.interfaces.nsiconsoleservice); var array = {}; consoleservice.getmessagearray(array, {}); return array.value; } to retrieve the message array in...
nsIDOMGeoGeolocation
errorcallback an nsidomgeopositionerrorcallback that is called if an error occurs while
retrieving the position; this parameter is optional.
nsIDocShell
this attribute lets you: see what converter was used when
retrieving the document's data.
nsIFocusManager
this has the result of
retrieving the method that was used to focus the currently focused element.
nsISearchEngine
if value is "{searchterms}", it will be substituted with the user-entered data when
retrieving the submission.
nsIStringBundle
intl/strres/nsistringbundle.idlscriptable this interface provides functions for
retrieving both formatted and unformatted strings from a properties file.
nsIWindowWatcher
since dom windows lack a (public) means of
retrieving their corresponding chrome, this method will do that.
WebIDL bindings
note: if your object can only be reflected into js by creating it, not by
retrieving it from somewhere, you can skip steps 1 and 2 above and instead add 'wrappercache': false to your descriptor.
Add to iPhoto
adding the image to iphoto the addimagebyurl() method handles actually
retrieving the image and adding it to iphoto.
URLs - Plugins
« previousnext » this chapter describes
retrieving urls and displaying them on specified target pages, posting data to an http server, uploading files to an ftp server, and sending mail.
CanvasRenderingContext2D.setTransform() - Web APIs
html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.settransform(1, .2, .8, 1, 0, 0); ctx.fillrect(0, 0, 100, 100); result
retrieving and passing a dommatrix object in the following example, we have two <canvas> elements.
ContentIndex - Web APIs
gory: 'article' }; // our asynchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } }
retrieving items within the current index the below example shows an asynchronous function that retrieves items within the content index and iterates over each entry, building a list for the interface.
Content Index API - Web APIs
gory: 'article' }; // our asynchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } }
retrieving items within the current index the below example shows an asynchronous function that retrieves items within the content index and iterates over each entry, building a list for the interface.
Using Fetch - Web APIs
fetch requests are controlled by the connect-src directive of content security policy rather than the directive of the resources it's
retrieving.
HTMLImageElement.crossOrigin - Web APIs
the htmlimageelement interface's crossorigin attribute is a string which specifies the cross-origin resource sharing (cors) setting to use when
retrieving the image.
HTMLOrForeignElement.nonce - Web APIs
examples
retrieving a nonce value in the past, not all browsers supported the nonce idl attribute, so a workaround is to try to use getattribute as a fallback: let nonce = script['nonce'] || script.getattribute('nonce'); however, recent browsers version hide nonce values that are accessed this way (an empty string will be returned).
Headers - Web APIs
these actions include
retrieving, setting, adding to, and removing headers from the list of the request's headers.
IDBRequest.error - Web APIs
// back into the database var updatetitlerequest = objectstore.put(data); // when this new request succeeds, run the displaydata() // function again to update the display updatetitlerequest.onsuccess = function() { displaydata(); }; }; objectstoretitlerequest.onerror = function() { // if an error occurs with the request, log what it is console.log("there has been an error with
retrieving your data: " + objectstoretitlerequest.error); }; specifications specification status comment indexed database api 2.0the definition of 'error' in that specification.
IDBRequest.onerror - Web APIs
ck // into the database var updatetitlerequest = objectstore.put(data); // when this new request succeeds, run the displaydata() // function again to update the display updatetitlerequest.onsuccess = function() { displaydata(); }; }; objectstoretitlerequest.onerror = function() { // if an error occurs with the request, log what it is console.log("there has been an error with
retrieving your data: " + objectstoretitlerequest.error); // todo what about event parameter into onerror()?
Keyboard.getLayoutMap() - Web APIs
the getlayoutmap() method of the keyboard interface returns a promise that resolves with an instance of keyboardlayoutmap which is a map-like object with functions for
retrieving the strings associated with specific physical keys.
Keyboard - Web APIs
methods keyboard.getlayoutmap() returns a promise that resolves with an instance of keyboardlayoutmap which is a map-like object with functions for
retrieving the strings associated with specific physical keys.
KeyboardLayoutMap - Web APIs
the keyboardlayoutmap interface of the the keyboard api is a map-like object with functions for
retrieving the string associated with specific physical keys.
MediaTrackConstraints.groupId - Web APIs
this makes it possible to use the group id to ensure that the audio and input devices are on the same headset by
retrieving the group id of the input device and specifying it when asking for an output device, perhaps.
Performance API - Web APIs
performanceresourcetiming provides methods and properties for
retrieving and analyzing detailed network timing data regarding the loading of an application's resources.
Permissions.query() - Web APIs
exceptions exception explanation typeerror
retrieving the permissiondescriptor information failed in some way, or the permission doesn't exist or is currently unsupported (e.g.
Permissions.revoke() - Web APIs
exceptions typeerror
retrieving the permissiondescriptor information failed in some way, or the permission doesn't exist or is currently unsupported (e.g.
RadioNodeList - Web APIs
on
retrieving the value property, the value of the currently checked radio button is returned as a string.
Reporting API - Web APIs
this method is not as failsafe as the report-to method described above — any page crash could stop you
retrieving the reports — but it is easier to set up, and more flexible.
Resource Timing API - Web APIs
the resource timing interfaces enable
retrieving and analyzing detailed network timing data regarding the loading of an application's resource(s).
HTML in XMLHttpRequest - Web APIs
usage
retrieving an html resource as a dom using xmlhttprequest works just like
retrieving an xml resource as a dom using xmlhttprequest, except you can't use the synchronous mode and you have to explicitly request a document by assigning the string "document" to the responsetype property of the xmlhttprequest object after calling open() but before calling send().
WAI ARIA Live Regions/API Support - Developer guides
retrieving author-supplied aria live region semantics from an event for any mutation event in a page, the author can get the following object attributes from the event object, if they are defined on some ancestor element (closest ancestor wins): object attribute name possible values default value if not specified meaning aria markup if required container-live "off" | "polite...
Overview of events and handlers - Developer guides
the innovation of the dynamic approach allows for a page to be partially rendered even when the browser has not finished
retrieving all resources; this approach also allows for event driven actions, which javascript leverages.
Grammar and types - JavaScript
parseint('101', 2) // 5 an alternative method of
retrieving a number from a string is with the + (unary plus) operator: '1.1' + '1.1' // '1.11.1' (+'1.1') + (+'1.1') // 2.2 // note: the parentheses are added for clarity, not required.
Error.prototype.stack - JavaScript
(note that the error object also possesses the filename, linenumber and columnnumber properties for
retrieving these from the error thrown (but only the error, and not its trace).) note that this is the format used by firefox.