Search completed in 1.37 seconds.
Sending forms through JavaScript - Learn web development
sending arbitrary data asynchronously is generally called ajax, which stands for "asynchronous javascript and xml".
...
sending form data there are 3 ways to send form data: building an xmlhttprequest manually.
... let's look at an example: <button>click me!</button> and now the javascript: const btn = document.queryselector('button'); function senddata( data ) { console.log( '
sending data' ); const xhr = new xmlhttprequest(); let urlencodeddata = "", urlencodeddatapairs = [], name; // turn the data object into an array of url-encoded key/value pairs.
...And 2 more matches
Sending and Receiving Binary Data - Web APIs
sending binary data the send method of the xmlhttprequest has been extended to enable easy transmission of binary data by accepting an arraybuffer, blob, or file object.
...}; var blob = new blob(['abc123'], {type: 'text/plain'}); oreq.send(blob);
sending typed arrays as binary data you can send javascript typed arrays as binary data as well.
... var myarray = new arraybuffer(512); var longint8view = new uint8array(myarray); // generate some data for (var i=0; i< longint8view.length; i++) { longint8view[i] = i % 256; } var xhr = new xmlhttprequest; xhr.open("post", url, false); xhr.send(myarray); this is building a 512-byte array of 8-bit integers and
sending it; you can use any binary data you'd like, of course.
... note: support for
sending arraybuffer objects using xmlhttprequest was added to gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6).
Sending form data - Learn web development
we also look at some of the security concerns associated with
sending form data.
... a special case:
sending files
sending files with html forms is a special case.
... summary as we'd alluded to above,
sending form data is easy, but securing an application can be tricky.
Index - Web APIs
in other words, any time it stops running without
sending an animationend event.
... 1226 element: webkitmouseforcedown event event, force touch, mouseevent, needscompattable, needsexample, reference, safari, trackpad, ui, web, webkit, apple, events, mouse, touch, webkitmouseforcedown after a mousedown event has been fired at the element, if and when sufficient pressure has been applied to the mouse or trackpad button to qualify as a "force click," safari begins
sending webkitmouseforcedown events to the element.
...it is primarily intended for use in
sending form data, but can be used independently from forms in order to transmit keyed data.
...And 20 more matches
Signaling and video calling - Web APIs
the server supports several message types to handle tasks, such as registering new users, setting usernames, and
sending public chat messages.
... our original chat demo didn't support
sending messages to a specific user.
...otherwise, the message is broadcast to all users by iterating over the connection list,
sending the message to each user.
...And 15 more matches
Mail composition back end
pizzarro <rhp@netscape.com> contents overview
sending messages nsimsgsend
sending listener interfaces nsimsgsendlistener nsimsgcopyservicelistener copy operations copy to sent folder drafts templates "send later"
sending unsent messages
sending unsent messages listener quoting sample programs overview i've done considerable work in the past few weeks reorganizing the mail composition back end, so i thought it would be helpful to put together a small doc on the new interfaces and how one can use them.
...
sending messages the primary responsibility of the back end is for the creation and
sending of rfc822 messages.
...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 13 more matches
Using XMLHttpRequest - Web APIs
there are several well tested methods for coercing the response of an xmlhttprequest into
sending binary data.
...*/ however, more modern techniques are available, since the responsetype attribute now supports a number of additional content types, which makes
sending and receiving binary data much easier.
...*/ } oreq.open("get", url); oreq.responsetype = "arraybuffer"; oreq.send(); for more examples check out the
sending and receiving binary data page monitoring progress xmlhttprequest provides the ability to listen to various events that can occur while the request is being processed.
...And 7 more matches
Streams - Plugins
receiving a stream
sending a stream receiving a stream when the browser sends a data stream to the plug-in, it has several tasks to perform: telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in
sending the stream in random-access mode
sending the stream in file mode telling the plug-in when a...
...
sending the stream in random-access mode in random-access mode, the plug-in "pulls" stream data by calling the npn_requestread method.
...
sending the stream in file mode if the stream is sent in file mode, the browser saves the entire stream to a local file and passes the full file path to the plug-in instance through the npp_streamasfile method.
...And 5 more matches
RTCPeerConnection.createOffer() - Web APIs
if this value is false, the remote peer will not be offered to send audio data, even if the local side will be
sending audio data.
... if this value is true, the remote peer will be offered to send audio data, even if the local side will not be
sending audio data.
... the default behavior is to offer to receive audio only if the local side is
sending audio, not otherwise.
...And 4 more matches
Writing WebSocket servers - Web APIs
note: the server can send other headers like set-cookie, or ask for authentication or redirects via other status codes, before
sending the reply handshake.
...(in fact, section 5.1 of the spec says that your server must disconnect from a client if that client sends an unmasked message.) when
sending a frame back to the client, do not mask it and do not set the mask bit.
...here is a rough sketch, in which a server reacts to a client
sending text messages.
...And 4 more matches
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
among the simplest things you can do is to implement a "hold" feature, wherein a participant in a call can click a button and turn off their microphone, begin
sending music to the other peer instead, and stop accepting incoming audio.
... this triggers renegotiation of the rtcpeerconnection by
sending it a negotiationneeded event, which your code responds to generating an sdp offer using rtcpeerconnection.createoffer and
sending it through the signaling server to the remote peer.
...this stops
sending audio on the transceiver.
...And 3 more matches
Using DTMF with WebRTC - Web APIs
in order to more fully support audio/video conferencing, webrtc supports
sending dtmf to the remote peer on an rtcpeerconnection.
...
sending dtmf on an rtcpeerconnection a given rtcpeerconnection can have multiple media tracks sent or received on it.
... once the track is selected, you can obtain from its rtcrtpsender the rtcdtmfsender object you'll use for
sending dtmf.
...And 3 more matches
Basic native form controls - Learn web development
here is a basic single line text field example: <input type="text" id="comment" name="comment" value="i'm a text field"> single line text fields have only one true constraint: if you type text with line breaks, the browser removes those line breaks before
sending the data to the server.
... browsers recognize the security implications of
sending form data over an insecure connection, and have warnings to deter users from using insecure forms.
...how these values are sent and retrieved is detailed in the
sending form data article.
...And 2 more matches
Your first form - Learn web development
forms allow users to enter data, which is generally sent to a web server for processing and storage (see
sending form data later in the module), or used on the client-side to immediately update the interface in some way (for example, add another item to a list, or show or hide a ui feature).
... note: we'll look at how those attributes work in our
sending form data article later on.
...
sending form data to your web server the last part, and perhaps the trickiest, is to handle form data on the server side.
...And 2 more matches
nsIDOMWindowUtils
deprecated since gecko 38.0 key_flag_not_synthesized_for_tests 0x0002 key_flag_location_standard 0x0010 location attrubute of the
sending key event by sendkeyevent() returns keyboardevent.dom_key_location_standard if this is specified to the aadditionalflags.
... deprecated since gecko 38.0 key_flag_location_left 0x0020 location attrubute of the
sending key event by sendkeyevent() returns keyboardevent.dom_key_location_left if this is specified to the aadditionalflags.
... deprecated since gecko 38.0 key_flag_location_right 0x0040 location attrubute of the
sending key event by sendkeyevent() returns keyboardevent.dom_key_location_right if this is specified to the aadditionalflags.
...And 2 more matches
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
if we're the impolite peer, and we're receiving a colliding offer, we return without setting the description, and instead set ignoreoffer to true to ensure we also ignore all candidates the other side may be
sending us on the signaling channel belonging to this offer.
... perfect negotiation with the updated api as shown in the section implementing perfect negotiation, we can eliminate this problem by introducing a variable (here called makingoffer) which we use to indicate that we are in the process of
sending an offer, and making use of the updated setlocaldescription() method: let makingoffer = false; pc.onnegotiationneeded = async () => { try { makingoffer = true; await pc.setlocaldescription(); signaler.send({ description: pc.localdescription }); } catch(err) { console.error(err); } finally { makingoffer = false; } }; we set makingoffer immediately before calling set...
...localdescription() in order to lock against interfering with
sending this offer, and we don't clear it back to false until the offer has been sent to the signaling server (or an error has occurred, preventing the offer from being made).
...And 2 more matches
Introduction to Public-Key Cryptography - Archive of obsolete content
the sender encrypts, or scrambles, information before
sending it.
...instead of requiring a user to send passwords across the network throughout the day, single sign-on requires the user to enter the private-key database password just once, without
sending it across the network.
... solving this problem requires some way for a user to log in once, using a single password, and get authenticated access to all network resources that user is authorized to use-without
sending any passwords over the network.
...a user can log in once, using a single password to the local client's private-key database, and get authenticated access to all ssl-enabled servers that user is authorized to use-without
sending any passwords over the network.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
gzip is commonly supported by web servers and modern browsers, meaning that servers can automatically compress files with gzip before
sending them, and browsers can uncompress files upon receiving them.
... 274 modem infrastructure, navigation a modem ("modulator-demodulator") is a device that converts digital information to analog signals and vice-versa, for
sending data through networks.
...it's used for
sending traditional telephone calls over the internet, but is also used for webrtc data.
... 468 udp (user datagram protocol) glossary, infrastructure, networking, protocols, udp udp (user datagram protocol) is a long standing protocol used together with ip for
sending data when transmission speed and efficiency matter more than security and reliability.
Web forms — Working with user data - Learn web development
validating and submitting form data client-side form validation
sending data is not enough — we also need to make sure that the data users enter into forms is in the correct format to process it successfully, and that it won't break our applications.
...
sending form data this article looks at what happens when a user submits a form — where does the data go, and how do we handle it when it gets there?
... we also look at some of the security concerns associated with
sending form data.
...
sending forms through javascript this article looks at ways to use a form to assemble an http request and send it via custom javascript, rather than standard form submission.
Introduction to the server side - Learn web development
it can even allow interaction with users of the site,
sending notifications and updates via email or through other channels.
...
sending notifications).
...the server-side code handles tasks like validating submitted data and requests, using databases to store and retrieve data and
sending the correct data to the client as required.
... the server is not limited to
sending information from databases, and might alternatively return the result of software tools, or data from communications services.
IME handling guide
see also notifications to ime section for the detail of
sending notifications.
...if all sent widgetcompositionevents and widgetselectionevents are already handled in the remote process, contentcacheinparent
sending the notifications to widget.
... notify_ime_of_text_change, notify_ime_of_selection_change, notify_ime_of_position_change and notify_ime_of_composition_event_handled are always sent by following order: notify_ime_of_text_change notify_ime_of_selection_change notify_ime_of_position_change notify_ime_of_composition_event_handled if
sending one of above notifications causes higher priority notification, the sender should abort to send remaning notifications and restart from highet priority notification again.
... if this notification is tried to sent before
sending notify_ime_of_focus, all pending notifications and notify_ime_of_blur itself are canceled.
PromiseWorker.jsm
sending a message from main thread to send a message to a worker from the main thread, one normally uses postmessage().
...
sending a message from worker with all other workers, to send a message to the main thread, postmessage is typically used.
...unlike when
sending/transferring from the main thread, transferring from worker does not require each piece of data that you want transferred to be wrapped in its own meta object.
...also unlike
sending/transferring from the main thread, when
sending/transferring from worker there are no alternative syntaxes, it must be wrapped in a meta object.
nsIMessageListener
this function receives a message from one of the three message-
sending functions in the message manager framework: broadcastasyncmessage sendasyncmessage sendsyncmessage.
...this is the first argument passed into the message-
sending function.
... data a structured clone of the message payload: the second argument passed into the message-
sending function.
... objects an object whose properties are any cross process object wrappers exposed by the sender as the third argument to the message-
sending function.
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.
... err = npn_geturl( instance, "http://www.example.com/", "_blank"); posting urls posting data to an http server uploading files to an ftp server
sending mail the plug-in calls npn_posturl to post data from a file or buffer to a url.
... possible url types include http (similar to an html form submission), mailto (
sending mail), news (posting a news article), and ftp (uploading a file).
...this example uploads a file from the root of the local file system to an ftp server and displays the response in a frame named response: char* mydata = "file:///c\/mydirectory/myfilename"; uint32 mylength = strlen(mydata) + 1; err = npn_posturl(instance, "ftp://fred@ftp.example.com/pub/", "response", mylength, mydata, true);
sending mail a plug-in can send an email message using npn_posturl or npn_posturlnotify.
Using Web Workers - Web APIs
all you need to do is call the worker() constructor, specifying the uri of a script to execute in the worker thread (main.js): var myworker = new worker('worker.js');
sending messages to and from a dedicated worker the magic of workers happens via the postmessage() method and the onmessage event handler.
...
sending messages to and from a shared worker now messages can be sent to the worker as before, but the postmessage() method has to be invoked through the port object (again, you'll see similar constructs in both multiply.js and square.js): squarenumber.onchange = function() { myworker.port.postmessage([squarenumber.value,squarenumber.value]); console.log('message posted to worker'); } now, on to t...
...transferable objects are transferred from one context to another with a zero-copy operation, which results in a vast performance improvement when
sending large data sets.
...you have to do it indirectly, by
sending a message back to the main script via dedicatedworkerglobalscope.postmessage, then actioning the changes from there.
Connection management in HTTP/1.x - HTTP
these connections were short-lived: a new one created each time a request needed
sending, and closed once the answer had been received.
...network latency and bandwidth affect performance when a request needs
sending.
...the http pipelining model goes one step further, by
sending several successive requests without even waiting for an answer, reducing much of the latency in the network.
...as a solution, browsers open several connections to each domain,
sending parallel requests.
A typical HTTP session - HTTP
the server processes the request,
sending back its answer, providing a status code and appropriate data.
...
sending a client request once the connection is established, the user-agent can send the request (a user-agent is typically a web browser, but can be anything else, a crawler, for example).
...an absolute url without the protocol or domain name the http protocol version subsequent lines represent an http header, giving the server information about what type of data is appropriate (e.g., what language, what mime types), or other data altering its behavior (e.g., not
sending an answer if it is already cached).
... for example,
sending the result of a form: post /contact_form.php http/1.1 host: developer.mozilla.org content-length: 64 content-type: application/x-www-form-urlencoded name=joe%20user&request=send%20me%20one%20of%20your%20catalogue request methods http defines a set of request methods indicating the desired action to be performed upon a resource.
Communicating With Other Scripts - Archive of obsolete content
section of the guide explains how content scripts can communicate with: your main.js file, or any other modules in your add-on other content scripts loaded by your add-on page scripts (that is, scripts embedded in the web page or included using <script> tags) main.js your content scripts can communicate with your add-on's "main.js" (or any other modules you're written for your add-on) by
sending it messages, using either the port.emit() api or the postmessage() api.
... finally, "listen.html" uses window.addeventlistener() to listen for messages from the content script: <!doctype html> <html> <head></head> <body> <script> window.addeventlistener('message', function(event) { window.alert(event.data); // message from content script }, false); </script> </body> </html> messaging from page script to content script
sending messages from the page script to the content script is just the same, but in reverse.
...er.addeventlistener("click", sendcustomevent, false); function sendcustomevent() { var greeting = {"greeting" : "hello world"}; var cloned = cloneinto(greeting, document.defaultview); var event = document.createevent('customevent'); event.initcustomevent("addon-message", true, true, cloned); document.documentelement.dispatchevent(event); } messaging from page script to content script
sending messages using custom dom events from the page script to the content script is just the same, but in reverse.
Interaction between privileged and non-privileged pages - Archive of obsolete content
sending data from unprivileged document to chrome an easy way to send data from a web page to an extension is by using custom dom events.
... document.addeventlistener("message", function(e) { yourfunction(e); }, false, true);
sending data from chrome to unprivileged document to "answer" the web page (e.g., return code), your extension can set an attribute or attach child elements on the event target element (<myextensiondataelement/> in this example).
... if (request.foo) { return settimeout(function() { callback({bar: 2}); }, 1000); } if (request.baz) { return settimeout(function() { callback({quux: 4}); }, 3000); } if (request.mozilla) { return alert("alert in chrome"); } return callback(null); } } something.listen_request(something.callback); message passing in chromium
sending structured data the above mechanisms use element attributes and are thus only strings.
Introduction to SSL - Archive of obsolete content
this confirmation might be important if the user, for example, is
sending a credit card number over the network and wants to check the receiving server's identity.
...this confirmation might be important if the server, for example, is a bank
sending confidential financial information to a customer and wants to check the recipient's identity.
... an encrypted ssl connection requires all information sent between a client and a server to be encrypted by the
sending software and decrypted by the receiving software, thus providing a high degree of confidentiality.
Client-side form validation - Learn web development
that means that even though the browser doesn't automatically check the validity of the form before
sending its data, you can still do it yourself and style the form accordingly.
...we'll cover
sending form data next.
... previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form validation
sending form data advanced topics how to build custom form controls
sending forms through javascript property compatibility table for form widgets ...
Extending a Protocol
now we actually need to implement the "echochild" and "echoparent" actors to handle
sending and receiving messages.
...// the protocol implementation will give us the actual // methods for
sending messages, as we will soon see.
...sastring& astring, errorresult& arv) { if (!mwindow || !mwindow->getdocshell()) { arv.throw(ns_error_unexpected); return nullptr; } refptr<promise> echopromise = promise::create(mwindow->asglobal(), arv); if (ns_warn_if(arv.failed())) { return nullptr; } errorresult rv; auto echochild = getechochild(rv); puts("[navigator.cpp]
sending echo!"); // let's send astring to the parent!
PR_TransmitFile
headers a pointer to the buffer holding the headers to be sent before
sending data.
...if an error occurs while
sending the file, the pr_transmitfile_close_socket flag is ignored.
...if headers is non-null, pr_transmitfile sends the headers across the socket before
sending the file.
sslfnc.html
however, most application protocols that use ssl are not two-way simultaneous, but two-way alternate, also known as "half dupled"; that is, each end takes turns
sending, and each end is either
sending, or receiving, but not both at the same time.
... ssl_rehandshake only initiates the new handshake by
sending the first message of that handshake.
... ssl_redohandshake only initiates the new handshake by
sending the first message of that handshake.
Handling Mozilla Security Bugs
version 1.1 important: anyone who believes they have found a mozilla-related security vulnerability can and should report it by
sending email to address security@mozilla.org.
...nomination is done by the "voucher"
sending e-mail to the security bug group private mailing list.
... however, we will ask all individuals and organizations reporting security bugs through bugzilla to follow the voluntary guidelines below: before making a security bug world-readable, please provide a few days notice to the mozilla security bug group by
sending an email to the private security bug group mailing list.
nsIDeviceMotion
void addwindowlistener( in nsidomwindow awindow ); parameters awindow the dom window that the accelerometer should begin
sending mozorientation events to.
... removelistener() tells the accelerometer to stop
sending updates to the specified nsidevicemotionlistener.
...void removewindowlistener( in nsidomwindow awindow ); parameters awindow the dom window that the accelerometer should stop
sending mozorientation events to.
Channel Messaging API - Web APIs
you could then respond by
sending a message back to the original document using messageport.postmessage.
... when you want to stop
sending messages down the channel, you can invoke messageport.close to close the ports.
... messageport controls the ports on the message channel, allowing
sending of messages from one port and listening out for them arriving at the other.
Using FormData Objects - Web APIs
it is primarily intended for use in
sending form data, but can be used independently from forms in order to transmit keyed data.
... 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.
...
sending files using a formdata object you can also send files using formdata.
RTCDTMFSender.toneBuffer - Web APIs
the rtcdtmfsender interface's tonebuffer property returns a string containing a list of the dtmf tones currently queued for
sending to the remote peer over the rtcpeerconnection.
... the comma (",") this character instructs the dialing process to pause for two seconds before
sending the next character in the buffer.
... using tone buffer strings for example, if you're writing code to control a voicemail system by
sending dtmf codes, you might use a string such as "*,1,5555".
RTCRtpTransceiver - Web APIs
sender read only the rtcrtpsender object responsible for encoding and
sending data to the remote peer.
... stopped indicates whether or not
sending and receiving using the paired rtcrtpsender and rtcrtpreceiver has been permanently disabled, either due to sdp offer/answer, or due to a call to stop().
...the associated sender stops
sending data, and the associated receiver likewise stops receiving and decoding incoming data.
RTCStats - Web APIs
rtcsentrtpstreamstats offers statistics related to the
sending end of an rtp stream.
... rtcoutboundrtpstreamstats contains statistics about the local
sending endpoint of an rtp stream.
... rtcremoteoutboundrtpstreamstats holds statistics related to the remote
sending end an rtp stream.
MIME types (IANA media types) - HTTP
this can be used, for instance, to represent an email that includes a forwarded message as part of its data, or to allow
sending very large messages in chunks as if it were multiple messages.
... multipart/form-data the multipart/form-data type can be used when
sending the values of a completed html form from browser to server.
...servers can prevent mime sniffing by
sending the x-content-type-options header.
Codecs used by WebRTC - Web media technologies
this is done by
sending an a=imageattr sdp attribute to indicate the maximum resolution that is acceptable.
...this helps to avoid a jarring effect that can occur when voice activation and similar features cause a stream to stop
sending data temporarily—a capability known as discontinuous transmission (dtx).
...we also get the lists of all codecs supported by the browser for both
sending and receiving video, using the getcapabilities() static method of both rtcrtpsender and rtcrtpreceiver.
Introduction to progressive web apps - Progressive web apps (PWAs)
for example, web apps are more discoverable than native apps; it's a lot easier and faster to visit a website than to install an application, and you can also share web apps by simply
sending a link.
... linkable, so you can share it by simply
sending a url.
...modern web apps can now do this too, using new technologies such as service workers for controlling pages, the web push api for
sending updates straight from server to app via a service worker, and the notifications api for generating system notifications to help engage users when they're not actively using their web browser.
Interacting with page scripts - Archive of obsolete content
finally, "listen.html" uses window.addeventlistener() to listen for messages from the content script: <!doctype html> <html> <head></head> <body> <script> window.addeventlistener('message', function(event) { window.alert(event.data); // message from content script }, false); </script> </body> </html> page script to content script
sending messages from the page script to the content script is just the same, but in reverse.
... = document.getelementbyid("message"); messenger.addeventlistener("click", sendcustomevent, false); function sendcustomevent() { var greeting = {"greeting" : "hello world"}; var cloned = cloneinto(greeting, document.defaultview); var event = new customevent("addon-message", { bubbles: true, detail: cloned }); document.documentelement.dispatchevent(event); } page script to content script
sending messages using custom dom events from the page script to the content script is just the same, but in reverse.
port - Archive of obsolete content
the port object provides message
sending and receiving api enabling conversations between a content script and the main add-on code.
...a message called "get-first-para" when it is clicked: // main.js pageworker = require("sdk/page-worker").page({ contentscriptfile: require("sdk/self").data.url("listener.js"), contenturl: "http://en.wikipedia.org/wiki/chalk" }); require("sdk/ui/button/action").actionbutton({ id: "get-first-para", label: "get-first-para", icon: "./icon-16.png", onclick: function() { console.log("
sending 'get-first-para'"); pageworker.port.emit("get-first-para"); } }); the content script listens for "get-first-para".
remote/parent - Archive of obsolete content
st { frames } = require("sdk/remote/child"); // listeners receive the frame the event was for as the first argument frames.port.on("changelocation", (frame, ref) => { frame.content.location += "#" + ref; }); // main.js const { frames, remoterequire } = require("sdk/remote/parent"); remoterequire("./remote.js", module); frames.port.emit("changelocation", "foo"); tab information this shows
sending a message when a tab loads; this is similar to how the sdk/tabs module currently works.
...the module loads asynchronously but you can start
sending messages to the module immediately.
ui/frame - Archive of obsolete content
so there are three cases to consider:
sending messages from a frame script to the main add-on code
sending messages from the main add-on code to all instances of a frame, across all browser windows
sending messages from the main add-on code to a single instance of a frame, attached to a specific browser window in all cases, postmessage() takes two arguments: the message itself and a targetorigin.
... to receive such messages in the frame script, listen for the window's message event: window.addeventlistener("message", handlepong, false);
sending json in all cases, you can send a string as a message or a json object.
NPAPI plugin developer guide - Archive of obsolete content
display modes using the object element for plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory
sending and receiving streams working with urls getting version and ui information displaying messages on the status line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized plug-ins for mac os x type libraries installing plug-ins native installers xpi plug-ins installations plug-in installation and the windows registry...
...e drawing area forcing a paint message making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins streams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in
sending the stream in random-access mode
sending the stream in file mode
sending a stream creating a stream pushing data into the stream deleting the stream example of
sending a stream urls getting urls getting the url and displaying the page posting urls posting data to an http server uploading files to an ftp server
sending mail memory allocating and freein...
Plug-in Development Overview - Gecko Plugin API Reference
the server looks for the mime type registered by a plug-in, based on the file extension, and starts
sending the file to the browser.
...
sending and receiving streams streams are objects that represent urls and the data they contain.
Index - Learn web development
323
sending form data beginner, codingscripting, files, forms, guide, html, http, headers, security, web as we'd alluded to above,
sending form data is easy, but securing an application can be tricky.
... 324
sending forms through javascript advanced, example, forms, forms guide, guide, html, html forms, javascript, learn, security, web, web forms html forms can send an http request declaratively.
JavaScript object basics - Learn web development
it is very common to create an object using an object literal when you want to transfer a series of structured, related data items in some manner, for example
sending a request to the server to be put into a database.
...
sending a single object is much more efficient than
sending several items individually, and it is easier to work with than an array, when you want to identify individual items by name.
Working with JSON - Learn web development
it is commonly used for transmitting data in web applications (e.g.,
sending some data from the server to the client, so it can be displayed on a web page, or vice versa).
...and when we want to send a javascript object across the network, we need to convert it to json (a string) before
sending.
Client-Server Overview - Learn web development
the web browser will then start to process the returned html,
sending separate requests to get any other css or javascript files that it references (see step 7).
... a good example of an additional task that a web application might perform would be
sending an email to users to confirm their registration with the site.
Componentizing our Svelte app - Learn web development
that's because our todo component is receiving the todo via the prop, but it's not
sending any information back to its parent.
...in addition, the remove event listener is
sending the daa change back up to the parent, so our "x out of y items completed" status heading will now update appropriately when todos are deleted.
Limitations of chrome scripts
there is a shim that will forward these two topics to the chrome process,
sending cpows as the asubject argument.
... if an add-on wants to use a jsm to share state in this way, it's best to load the jsm in the chrome process, and have frame scripts store and access the jsm's state by
sending messages to the chrome process using the message manager.
Frame script loading and lifetime
for example, from bootstrap.js: services.mm.addmessagelistener( 'my-addon-id', { receivemessage: function() { console.log('incoming message from frame script:', amsg.data); } }, true // must set this argument to true, otherwise
sending message from framescript will not work during and after the unload event on the contentmessagemanager triggers ); then in your frame script, listen for the unload event of the message manager (which is the global this), and
sending a message.
... if you did not set the third argument to true in bootstrap.js on services.mm.addmessagelistener,
sending this message during, and after, the unloading event will do nothing.
IPDL Tutorial
this generated code manages the details of the underlying communication layer (sockets and pipes), constructing and
sending messages, ensuring that all actors adhere to their specifications, and handling many error conditions.
... */ bool recvready() = 0; }; class ppluginchild { protected: bool recvinit(const nscstring& pluginpath) = 0; bool recvshutdown() = 0; public: bool sendready() { // generated code to send a ready() message } }; these parent and child abstract classes take care of all the "protocol layer" concerns: serializing data,
sending and receiving messages, and checking protocol safety.
WebRequest.jsm
onbeforesendheaders this event is triggered before
sending any http data, but after all http headers are available.
... onsendheaders triggered just before
sending headers.
PR_RecvFrom
receives bytes from a socket and stores the
sending peer's address.
... addr a pointer to the prnetaddr object that will be filled in with the address of the
sending peer on return.
Web Replay
messages describe actions the child process is able to do independently from the recording; currently this includes
sending graphics updates, taking and restoring process snapshots, and responding to debugger requests.
... the debugger can explore the heap by
sending messages to the child process to fill in the contents of the debug objects it creates.
Index
however, such decoders relied on servers
sending correct mime types; images sent with incorrect mime types would not be correctly displayed.
...
sending a post request to this url routes the message to the instance of firefox that created the subscription.
nsIFaviconService
but
sending out those notifications is very intensive.
...but
sending out those notifications is very intensive.
nsIHttpActivityObserver
activity subtype constants constant value description activity_subtype_request_header 0x5001 the http request is about to be queued for
sending.
...socket transport activity when the activity type is activity_type_socket_transport and the subtype is status_
sending_to, the aextrasizedata parameter contains the number of bytes sent.
nsIMemoryReporterManager
unregistermultireporter() stops
sending memory multi-reporter notifications to the specified object.
... unregisterreporter() stops
sending memory reporter notifications to the specified object.
nsIPushSubscription
sending a post request to this url routes the message to the instance of firefox that created the subscription.
... cc["@mozilla.org/push/service;1"] .getservice(ci.nsipushservice); function sendsubscriptiontoserver(subscription) { let request = cc["@mozilla.org/xmlextras/xmlhttprequest;1"] .createinstance(ci.nsixmlhttprequest); request.open("post", "https://example.com/register-for-push", true); request.addeventlistener("error", () => { cu.reporterror("error
sending subscription to server"); }); request.send(json.stringify({ endpoint: subscription.endpoint, // base64-encode the key and authentication secret.
Mail client architecture overview
most of these modules have little dependancy on the mail reader itself: compose - the mail compose module is responsible for anything that has to do with
sending mail.
... this includes the mail compose window, creation of rfc822 messages from the data a user has entered, and
sending the messages via smtp.
Plug-in Development Overview - Plugins
the server looks for the mime type registered by a plug-in, based on the file extension, and starts
sending the file to the browser.
...
sending and receiving streams streams are objects that represent urls and the data they contain.
Gecko Plugin API Reference - Plugins
display modes using the object element for plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory
sending and receiving streams working with urls getting version and ui information displaying messages on the status line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized plug-ins for mac os x type libraries installing plug-ins native installers xpi plug-ins installations plug-in installation and the windows registry...
...e drawing area forcing a paint message making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins streams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in
sending the stream in random-access mode
sending the stream in file mode
sending a stream creating a stream pushing data into the stream deleting the stream example of
sending a stream urls getting urls getting the url and displaying the page posting urls posting data to an http server uploading files to an ftp server
sending mail memory allocating and freein...
Beacon API - Web APIs
example use cases of the beacon api are logging activity and
sending analytics data to the server.
...
sending the data any sooner may result in a missed opportunity to gather data.
Broadcast Channel API - Web APIs
// connection to a broadcast channel const bc = new broadcastchannel('test_channel');
sending a message it is enough to call the postmessage() method on the created broadcastchannel object, which takes any object as an argument.
... an example string message: // example of
sending of a very simple message bc.postmessage('this is a test message.'); any kind of object can be sent, not just a domstring.
Client.postMessage() - Web APIs
the ownership of these objects is given to the destination side and they are no longer usable on the
sending side.
... examples
sending a message from a service worker to a client: addeventlistener('fetch', event => { event.waituntil(async function() { // exit early if we don't have access to the client.
MediaStreamTrack: ended event - Web APIs
bubbles no cancelable no interface event event handler property mediastreamtrack.onended usage notes ended events fire when the media stream track's source permanently stops
sending data on the stream.
... a remote peer has permanently stopped
sending data; pausing media does not generate an ended event.
Push API - Web APIs
the resulting pushsubscription includes all the information that the application needs to send a push message: an endpoint and the encryption key needed for
sending data.
... note: chrome versions earlier than 52 require you to set up a project on google cloud messaging to send push messages, and use the associated project number and api key when
sending push notifications.
RTCDTMFSender.insertDTMF() - Web APIs
the insertdtmf() method on the rtcdtmfsender interface starts
sending dtmf tones to the remote peer over the rtcpeerconnection.
...
sending of the tones is performed asynchronously, with tonechange events sent to the rtcdtmfsender every time a tone starts or ends.
RTCDTMFSender - Web APIs
methods rtcdtmfsender.insertdtmf() given a string describing a set of dtmf codes and, optionally, the duration of and inter-tone gap between the tones, insertdtmf() starts
sending the specified tones.
...you can abort
sending queued tones by specifying an empty string ("") as the set of tones to play.
RTCIceCandidatePairStats.totalRoundTripTime - Web APIs
the rtcicecandidatepairstats dictionary's totalroundtriptime property is the total time that has elapsed between
sending stun requests and receiving the responses, for all such requests that have been made so far on the pair of candidates described by this rtcicecandidatepairstats object.
... syntax totalrtt = rtcicecandidatepairstats.totalroundtriptime; value this floating-point value indicates the total number of seconds which have elapsed between
sending out stun connectivity and consent check requests and receiving their responses, for all such requests made so far on the connection described by this candidate pair.
RTCPeerConnection.addTrack() - Web APIs
the associated rtcrtptransceiver has its currentdirection updated to include
sending; if its current value is "recvonly", it becomes "sendrecv", and if its current value is "inactive", it becomes "sendonly".
... the final step is to begin
sending the local video across the peer connection to the caller.
RTCPeerConnection - Web APIs
because this method has been deprecated, you should instead use removetrack() if your target browser versions have implemented it.removetrack()the rtcpeerconnection.removetrack() method tells the local end of the connection to stop
sending media from the specified track, without actually removing the corresponding rtcrtpsender from the list of senders as reported by rtcpeerconnection.getsenders().restartice()the webrtc api's rtcpeerconnection interface offers the restartice() method to allow a web application to easily request that ice candidate gathering be redone on both ends of the connection.setconfiguration() the rtcpeerconne...
...the receiver should respond by creating an offer and
sending it to the other peer.
RTCRtpSender.getCapabilities() static function - Web APIs
return value an rtcrtpcapabilities object stating what capabilities the browser has for
sending the specified media kind over an rtcpeerconnection.
... example the function below returns a boolean indicating whether or not the device supports
sending h.264 video on an rtcrtpsender.
RTCRtpStreamStats - Web APIs
a fir packet is sent by the receiving end of the stream when it falls behind or has lost packets and is unable to continue decoding the stream; the
sending end of the stream receives the fir packet and responds by
sending a full frame instead of a delta frame, thereby letting the receiver "catch up." the higher this number is, the more often a problem of this nature arose, which can be a sign of network congestion or an overburdened receiving device.
... nackcount the number of times the receiver notified the sender that one or more rtp packets has been lost by
sending a negative acknowledgement (nack, also called "generic nack") packet to the sender.
RTCRtpTransceiver.stop() - Web APIs
usage notes when you call stop() on a transceiver, the sender immediately stops
sending media and each of its rtp streams are closed using the rtcp "bye" message.
... the receiver then stops receiving media; the receiver's track is stopped, and the transceiver's direction is changed to stopped, and renegotiation is triggered by
sending a negotiationneeded event to the rtcpeerconnection.
Hello vertex attributes - Web APIs
« previousnext » this webgl example demonstrates how to combine shader programming and user interaction by
sending user input to the shader using vertex attributes.
... <p>first encounter with attributes and
sending data to gpu.
Lifetime of a WebRTC session - Web APIs
signaling signaling is the process of
sending control information between two devices to determine the communication protocols, channels, media codecs and formats, and method of data transfer, as well as any required routing information.
... each peer establishes a handler for icecandidate events, which handles
sending those candidates to the other peer over the signaling channel.
Using WebRTC data channels - Web APIs
when two users running firefox are communicating on a data channel, the message size limit is much larger than when firefox and chrome are communicating because firefox implements a now deprecated technique for
sending large messages in multiple sctp messages, which chrome does not.
...the problem arises from the fact that sctp—the protocol used for
sending and receiving data on an rtcdatachannel—was originally designed for use as a signaling protocol.
WebRTC API - Web APIs
webrtc concepts and usage webrtc serves multiple purposes; together with the media capture and streams api, they provide powerful multimedia capabilities to the web, including support for audio and video conferencing, file exchange, screen sharing, identity management, and interfacing with legacy telephone systems including support for
sending dtmf (touch-tone dialing) signals.
... using dtmf with webrtc webrtc's support for interacting with gateways that link to old-school telephone systems includes support for
sending dtmf tones using the rtcdtmfsender interface.
Controlling multiple parameters with ConstantSourceNode - Web APIs
since constantsourcenode's offset value is simply sent straight through to all of its outputs, it acts as a splitter for that value,
sending it to each connected parameter.
...we connect its output to the gain audioparam on both gainnode2 and gainnode3, and we start the constant node running by calling its start() method; now it's
sending the value 0.5 to the two gain nodes' values, and any change to constantnode.offset will automatically set the gain of both gainnode2 and gainnode3 (affecting their audio inputs as expected).
window.postMessage() - Web APIs
the ownership of these objects is given to the destination side and they are no longer usable on the
sending side.
... the value of the origin property when the
sending window contains a javascript: or data: url is the origin of the script that loaded the url.
XRInputSourceEvent() - Web APIs
event types select sent to an xrsession when the
sending input source has fully completed a primary action.
... squeeze sent to an xrsession when the
sending input source has fully completed a primary squeeze action.
XRInputSourceEvent - Web APIs
event types select sent to an xrsession when the
sending input source has fully completed a primary action.
... squeeze sent to an xrsession when the
sending input source has fully completed a primary squeeze action.
Getting Started - Developer guides
the second parameter is the url you're
sending the request to.
... note: if you're
sending a request to a piece of code that will return xml, rather than a static html file, you must set response headers to work in internet explorer.
<img>: The Image Embed element - HTML: Hypertext Markup Language
if the crossorigin attribute is specified, then a cors request is sent (with the origin request header); but if the server does not opt into allowing cross-origin access to the image data by the origin site (by not
sending any access-control-allow-origin response header, or by not including the site's origin in any access-control-allow-origin response header it does send), then the browser marks the image as tainted and restricts access to its image data, preventing its usage in <canvas> elements.
...if the server does not opt into sharing credentials with the origin site (by
sending back the access-control-allow-credentials: true response header), then the browser marks the image as tainted and restricts access to its image data.
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.
... finally, access-control-max-age gives the value in seconds for how long the response to the preflight request can be cached for without
sending another preflight request.
HTTP conditional requests - HTTP
integrity of a partial download partial downloading of files is a functionality of http that allows to resume previous operations, saving bandwidth and time, by keeping the already obtained information: a server supporting partial downloads broadcasts this by
sending the accept-ranges header.
... once this happens, the client can resume a download by
sending a ranges header with the missing ranges: the principle is simple, but there is one potential problem: if the downloaded resource has been modified between both downloads, the obtained ranges will correspond to two different versions of the resource, and the final document will be corrupted.
Content negotiation - HTTP
the user-agent header identifies the browser
sending the request.
...
sending of the headers must be done on every request.
Using HTTP cookies - HTTP
a simple cookie is set like this: set-cookie: <cookie-name>=<cookie-value> this shows the server
sending headers to tell the client to store a pair of cookies: http/2.0 200 ok content-type: text/html set-cookie: yummy_cookie=choco set-cookie: tasty_cookie=strawberry [page content] then, with every subsequent request to the server, the browser sends back all previously stored cookies to the server using the cookie header.
... on the application server, the web application must check for the full cookie name including the prefix—user agents do not strip the prefix from the cookie before
sending it in a request's cookie header.
DPR - HTTP
server has to opt in to receive dpr header from the client by
sending accept-ch and accept-ch-lifetime response headers.
... syntax dpr: <number> examples server first needs to opt in to receive dpr header by
sending the response headers accept-ch containing dpr and accept-ch-lifetime.
Device-Memory - HTTP
server has to opt in to receive device-memory header from the client by
sending accept-ch and accept-ch-lifetime response headers.
... device-memory: <number> examples server first needs to opt in to receive device-memory header by
sending the response headers accept-ch containing device-memory and accept-ch-lifetime.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
to learn more about vapid keys you can read the
sending vapid identified webpush notifications via mozilla’s push service blog post.
...you can use the following ones:"); console.log(webpush.generatevapidkeys()); return; } webpush.setvapiddetails( 'https://serviceworke.rs/', process.env.vapid_public_key, process.env.vapid_private_key ); next, a module defines and exports all the routes an app needs to handle: getting the vapid public key, registering, and then
sending notifications.
Getting started - SVG: Scalable Vector Graphics
for normal svg files, servers should send the http headers: content-type: image/svg+xml vary: accept-encoding for gzip-compressed svg files, servers should send the http headers: content-type: image/svg+xml content-encoding: gzip vary: accept-encoding you can check that your server is
sending the correct http headers with your svg files by using the network monitor panel or a site such as websniffer.cc.
...if you find that your server is not
sending the headers with the values given above, then you should contact your web host.
Types of attacks - Web security
name="amount" value="1000000"> <input type="hidden" name="for" value="mallory"> </form> <script>window.addeventlistener('domcontentloaded', (e) => { document.queryselector('form').submit(); }</script> there are a few techniques that should be used to prevent this from happening: get endpoints should be idempotent—actions that enact a change and do not simply retrieve data should require
sending a post (or other http method) request.
...the end result would be much the same, with the browser storing the illegitimate cookie and
sending it to all other pages under example.com.
Communicating using "port" - Archive of obsolete content
tent script a message called "get-first-para" when it is clicked: pageworker = require("sdk/page-worker").page({ contentscriptfile: require("sdk/self").data.url("listener.js"), contenturl: "http://en.wikipedia.org/wiki/chalk" }); require("sdk/ui/button/action").actionbutton({ id: "get-first-para", label: "get-first-para", icon: "./icon-16.png", onclick: function() { console.log("
sending 'get-first-para'"); pageworker.port.emit("get-first-para"); } }); the content script "listener.js" listens for "get-first-para".
Communicating using "postMessage" - Archive of obsolete content
ing());" + "}, false);"; var pagemod = require('sdk/page-mod').pagemod({ include: ['*'], contentscript: pagemodscript, onattach: function(worker) { worker.on('message', function(message) { console.log('mouseover: ' + message); }); } }); the reason to prefer user-defined events is that as soon as you need to send more than one type of message, then both
sending and receiving messages gets more complex.
Content Scripts - Archive of obsolete content
one option is that you can relay messages through the main add-on code using the port api with the
sending context script
sending a message to the main add-on code and the the main add-on code sends the message to the other content script.
Working with Events - Archive of obsolete content
so there are two main ways you will interact with the eventemitter framework: listening to built-in events emitted by objects in the sdk, such as tabs opening, pages loading, mouse clicks
sending and receiving user-defined events between content scripts and add-on code this guide only covers the first of these; the second is explained in the working with content scripts guide.
XUL Migration Guide - Archive of obsolete content
but the sdk makes a distinction between: add-on scripts, which can use the sdk apis, but are not able to interact with web pages content scripts, which can access web pages, but do not have access to the sdk's apis content scripts and add-on scripts communicate by
sending each other json messages: in fact, the ability to communicate with the add-on scripts is the only extra privilege a content script is granted over a normal remote web page script.
page-mod - Archive of obsolete content
the main add-on code sends the desired tag to the content script, and the content script replies by
sending the html content of all the elements with that tag.
panel - Archive of obsolete content
/icon-64.png" }, onchange: handlechange }); var mypanel = sdkpanels.panel({ contenturl: self.data.url("panel.html"), onhide: handlehide }); function handlechange(state) { if (state.checked) { mypanel.show({ position: button }); } } function handlehide() { button.state('window', {checked: false}); } updating panel content you can update the panel's content by:
sending a message to a content script that updates the dom in the same document.
JavaScript Daemons Management - Archive of obsolete content
about the “callback arguments” polyfill in order to make this framework compatible with internet explorer (which doesn't support
sending additional parameters to timers' callback function, neither with settimeout() or setinterval()) we included the ie-specific compatibility code (commented code), which enables the html5 standard parameters' passage functionality in that browser for both timers (polyfill), at the end of the daemon.js module.
Index - Archive of obsolete content
the testsuite allows more flexibility by coding scripts in python allowing any executable to run,
sending commands to stdin, and asserting output using regular expressions.
File object - Archive of obsolete content
examples example: hello, world file.output.writeln("hello, world"); example: writing a new file var file = new file("myfile.txt"); file.open("write,create", "text"); file.writeln("the quick brown fox jumped over the lazy dogs"); file.close(); example: reading from a file var data; var file = new file("myfile.txt"); file.open("read", "text"); data = file.readln(); file.close(); example:
sending mail through a pipeline var mail = new file("|/usr/lib/sendmail foo@bar.com"); mail.writeln("i love javascript.\npipe support is especially good!"); mail.close(); ...
Cmdline tests - Archive of obsolete content
the testsuite allows more flexibility by coding scripts in python allowing any executable to run,
sending commands to stdin, and asserting output using regular expressions.
Mozilla release FAQ - Archive of obsolete content
for example, if you were to make a proposal to compress whole webpages before
sending them, devise a new protocol to do so, research how http works, how html works, and think about all the good *and* bad points of reworking things.
Introduction to game development for the Web - Game development
pointer lock api the pointer lock api lets you lock the mouse or other pointing device within your game's interface so that instead of absolute cursor positioning you receive coordinate deltas that give you more precise measurements of what the user is doing, and prevent the user from accidentally
sending their input somewhere else, thereby missing important action.
Game promotion - Game development
sending out weekly newsletters and organizing online competitions or local meetups will show others that you're passionate about what you do and that they can rely on you.
WebVR — Virtual Reality for the Web - Game development
using the webvr api the webvr api is based on two concepts —
sending stereoscopic images to both lenses in your headset and receiving positional data for your head from the sensor, and those two are handled by hmdvrdevice (head-mounted display virtual reality device) and positionsensorvrdevice.
Preflight request - MDN Web Docs Glossary: Definitions of Web-related terms
for example, a client might be asking a server if it would allow a delete request, before
sending a delete request, by using a preflight request: options /resource/foo access-control-request-method: delete access-control-request-headers: origin, x-requested-with origin: https://foo.bar.org if the server allows it, then it will respond to the preflight request with an access-control-allow-methods response header, which lists delete: http/1.1 204 no content connection: keep-alive access-cont...
Server - MDN Web Docs Glossary: Definitions of Web-related terms
for example: an internet-connected web server is
sending a html file to your browser software so that you can read this page local area network server for file, name, mail, print, and fax minicomputers, mainframes, and super computers at data centers learn more general knowledge introduction to servers server (computing) on wikipedia ...
Advanced form styling - Learn web development
previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form validation
sending form data advanced topics how to build custom form controls
sending forms through javascript property compatibility table for form widgets ...
The HTML5 input types - Learn web development
previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form validation
sending form data advanced topics how to build custom form controls
sending forms through javascript property compatibility table for form widgets ...
How to structure a web form - Learn web development
see also a list apart: sensible forms: a form usability checklist previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form validation
sending form data advanced topics how to build custom form controls
sending forms through javascript property compatibility table for form widgets ...
Other form controls - Learn web development
previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form validation
sending form data advanced topics how to build custom form controls
sending forms through javascript property compatibility table for form widgets ...
Styling web forms - Learn web development
previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form validation
sending form data advanced topics how to build custom form controls
sending forms through javascript property compatibility table for form widgets ...
UI pseudo-classes - Learn web development
previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form validation
sending form data advanced topics how to build custom form controls
sending forms through javascript property compatibility table for form widgets ...
How the Web works - Learn web development
here it is", and then starts
sending the website's files to the browser as a series of small chunks called data packets (the shop gives you your goods, and you bring them back to your house).
The web and web standards - Learn web development
a typical use for a server-side language is to get some data out of a database and generate some html to contain the data, before then
sending the html over to the browser to display it to the user.
Aprender y obtener ayuda - Learn web development
note: online code editors are also really useful for sharing code you've written, for example, if you are collaborating on learning with someone else who isn't in the same location, or are
sending it someone to ask for help with it.
Communicating with frame scripts
addmessagelistener("my-addon@me.org:message-from-chrome", handlemessagefromchrome); message-manager-disconnect if you're using a message manager to communicate with a script that may be running in a different process, you can listen for the message-manager-disconnect observer notification to know when the message manager has disconnected from the other end of the conversation, so you can stop
sending it messages or expecting to receive messages.
Localizing with Mercurial
sending changes to mozilla now that you have hg account privileges, you can send your work to mozilla all by yourself.
Localization formats
you may choose to present just the html for localization: we give an html file which lists several pieces of content like, <h1>getting started</h1> and the localizer translates to <h1>débuter avec firefox</h1> the localizer then submits the translated html or php back to us by either checking in changes to svn or
sending us a patch that pascal checks in.
Mozilla Port Blocking
background on 08/15/2001, cert issued a vulnerability note vu#476267 for a "cross-protocol" scripting attack, known as the html form protocol attack which allowed
sending arbitrary data to most tcp ports.
Phishing: a short definition
a relatively simple, yet effective, phishing scheme is
sending an email with a fake invoice of a person’s favorite shopping site.
Nonblocking IO In NSPR
in nonblocking mode, they cannot block, so they may return with just
sending part of the buffer.
NSS 3.15 release notes
in ocsp.h cert_postocsprequest - primarily intended for testing, permits the
sending and receiving of raw ocsp request/responses.
NSS 3.28 release notes
ssl_sendadditionalkeyshares configures a tls 1.3 client so that it generates additional key shares when
sending a clienthello.
Feed content access API
loading the feed and
sending it to the parser is done using code similar to this: fetch: function(feedurl) { var httprequest = null; function inforeceived() { var data = httprequest.responsetext; var ioservice = components.classes['@mozilla.org/network/io-service;1'] .getservice(components.interfaces.nsiioservice); var uri = ioservice.newuri(feedurl, nu...
Setting up the Gecko SDK
this allows you to created the component without
sending any extra dlls set path=%path%;d:\projects\xulrunner-sdk\sdk\bin;d:\projects\xulrunner-sdk\bin this tells the command prompt where to find the gecko tools, importantly (xpidl, regxpcom, and gmake).
Components.utils.reportError
examples usage in an exception handler: try { this.could.raise.an.exception; } catch(e) { components.utils.reporterror(e); // report the error and continue execution }
sending debugging messages to the error console: components.utils.reporterror("init() called"); ...
Observer Notifications
if you're using a message manager to communicate with a script that may be running in a different process, you might need to know when the message manager has disconnected from the other end of the conversation, so you can stop
sending it messages or expecting to receive messages.
nsIClipboardDragDropHookList
you should access these capabilities indirectly by
sending commands using the nsiclipboarddragdrophooks interface.
nsIContentSecurityPolicy
void scanrequestdata( in nsihttpchannel achannel ); parameters achannel sendreports() manually triggers violation report
sending given a uri and reason.
nsIDocumentLoader
it is also responsible for
sending nsiwebprogresslistener notifications.
nsIGlobalHistory3
for implementors of nsiglobalhistory3: the history implementation is responsible for
sending ns_link_visited_event_topic to observers for redirect pages.
nsIHttpServer
* * @param path * the path on the server (beginning with a "/") which is to be handled by * handler; this path must not include a query string or hash component; it * also should usually be canonicalized, since most browsers will do so * before
sending otherwise-matching requests * @param handler * an object which will handle any requests for the given path, or null to * remove any existing handler; if while the server is running the handler * throws an exception while responding to a request, an http 500 response * will be returned * @throws ns_error_invalid_arg * if path does not begin with a "/" */ void re...
nsIHttpUpgradeListener
asocketout the nsiasyncoutputstream object representing the out stream for
sending data to the server over the socket.
nsIMessenger
sendingunsentmsgs boolean indicates if
sending messages is in progress.
nsISocketTransport
status_connecting_to 0x804b0007 status_connected_to 0x804b0004 status_
sending_to 0x804b0005 status_waiting_for 0x804b000a status_receiving_from 0x804b0006 connection flags values for the connectionflags attribute constant value description bypass_cache 0 when making a new connection bypass_cache will force the necko dns cache entry to be...
nsITransportEventSink
void ontransportstatus( in nsitransport atransport, in nsresult astatus, in unsigned long long aprogress, in unsigned long long aprogressmax ); parameters atransport the transport
sending this status notification.
XPCOM
however, such decoders relied on servers
sending correct mime types; images sent with incorrect mime types would not be correctly displayed.xpcom gluethe xpcom glue is a static library which component developers and embedders can link against.
Using Objective-C from js-ctypes
typedef struct objc_selector *sel; in this example, we need to send alloc, its selector can be retrieved with the following code: sel alloc = sel_registername("alloc");
sending a message once target class and selector are ready, you can send a message.
Mozilla
mozilla port blocking on 08/15/2001, cert issued a vulnerability note vu#476267 for a "cross-protocol" scripting attack, known as the html form protocol attack which allowed
sending arbitrary data to most tcp ports.
Drawing and Event Handling - Plugins
the browser is also responsible for
sending the plug-in all events targeted to an instance, such as mouse clicks when the cursor is within the instance rectangle or suspend and resume events when the application is switched in and out.
Plug-in Basics - Plugins
the server looks for the media (mime) type registered by a plug-in, based on the file extension, and starts
sending the file to the browser.
AddressErrors - Web APIs
in the example, we're handling a donation to an organization that will be
sending a "thank you" gift to the donor, so it requests shipping information along with allowing the donation payment itself.
AudioNode.connect() - Web APIs
for example, you might send the audio from a mediaelementaudiosourcenode—that is, the audio from an html5 media element such as <audio>—through a band pass filter implemented using a biquadfilternode to reduce noise before then
sending the audio along to the speakers.
AuthenticatorAttestationResponse.attestationObject - Web APIs
y(16), name: "jdoe@example.com", displayname: "john doe" }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey }) .then(function (newcredentialinfo) { var attestationobj = newcredentialinfo.response.attestationobject; // this will be a cbor encoded arraybuffer // do something with the response // (
sending it back to the relying party server maybe?) }).catch(function (err) { console.error(err); }); specifications specification status comment web authentication: an api for accessing public key credentials level 1the definition of 'attestationobject' in that specification.
AuthenticatorAttestationResponse - Web APIs
orp", id : "login.example.com" }, user: { id: new uint8array(16), name: "jdoe@example.com", displayname: "john doe" }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey }) .then(function (newcredentialinfo) { var response = newcredentialinfo.response; // do something with the response // (
sending it back to the relying party server maybe?) }).catch(function (err) { console.error(err); }); specifications specification status comment web authentication: an api for accessing public key credentials level 1the definition of 'authenticatorattestationresponse interface' in that specification.
CSSStyleSheet.insertRule() - Web APIs
it supplements insertrule() with a function that separates the selector from the rules before
sending the arguments to the default native insertrule().
Clipboard.write() - Web APIs
function setclipboard(text) { let data = [new clipboarditem({ "text/plain": text })]; navigator.clipboard.write(data).then(function() { /* success */ }, function() { /* failure */ }); } the code begins by creating a new clipboarditem object into which the text will be placed for
sending to the clipboard.
Element: webkitmouseforcedown event - Web APIs
after a mousedown event has been fired at the element, if and when sufficient pressure has been applied to the mouse or trackpad button to qualify as a "force click," safari begins
sending webkitmouseforcedown events to the element.
Event - Web APIs
it can also be triggered programmatically, such as by calling the htmlelement.click() method of an element, or by defining the event, then
sending it to a specified target using eventtarget.dispatchevent().
ExtendableMessageEvent.data - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by
sending the data received via pushmessagedata to the main context via a channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent.lastEventId - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by
sending the data received via pushmessagedata to the main context via a channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent.origin - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by
sending the data received via pushmessagedata to the main context via a channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent.ports - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by
sending the data received via pushmessagedata to the main context via a channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent.source - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by
sending the data received via pushmessagedata to the main context via a channel message, the event object of onmessage will be a extendablemessageevent.
Using Fetch - Web APIs
ative javascript objects } postdata('https://example.com/answer', { answer: 42 }) .then(data => { console.log(data); // json data parsed by `data.json()` call }); note that mode: "no-cors" only allows a limited set of headers in the request: accept accept-language content-language content-type with a value of application/x-www-form-urlencoded, multipart/form-data, or text/plain
sending a request with credentials included to cause browsers to send a request with credentials included, even for a cross-origin call, add credentials: 'include' to the init object you pass to the fetch() method.
The HTML DOM API - Web APIs
closeevent websocket server-sent events interfaces the eventsource interface represents the source which sent or is
sending server-sent events.
MediaQueryList - Web APIs
the resulting object handles
sending notifications to listeners when the media query state changes (i.e.
MediaQueryListListener - Web APIs
a mediaquerylist object maintains a list of media queries on a document, and handles
sending notifications to listeners when the media queries on the document change.
MessagePort.postMessage() - Web APIs
transferlist optional transferable objects to be transferred — these objects have their ownership transferred to the receiving browsing context, so are no longer usable by the
sending browsing context.
MessagePort - Web APIs
start() starts the
sending of messages queued on the port (only needed when using eventtarget.addeventlistener; it is implied when using messageport.onmessage.) close() disconnects the port, so it is no longer active.
Navigator.sendBeacon() - Web APIs
description this method is for analytics and diagnostics that send data to a server before the document is unloaded, where
sending the data any sooner may miss some possible data collection.
Notification.permission - Web APIs
examples the following snippet could be used if you wanted to first check whether notifications are supported, then check if permission has been granted for the current origin to send notifications, then request permission if required, before then
sending a notification.
Notification.requestPermission() - Web APIs
sume this basic html: <button onclick="notifyme()">notify me!</button> it's possible to send a notification as follows — here we present a fairly verbose and complete set of code you could use if you wanted to first check whether notifications are supported, then check if permission has been granted for the current origin to send notifications, then request permission if required, before then
sending a notification.
Notification - Web APIs
sume this basic html: <button onclick="notifyme()">notify me!</button> it's possible to send a notification as follows — here we present a fairly verbose and complete set of code you could use if you wanted to first check whether notifications are supported, then check if permission has been granted for the current origin to send notifications, then request permission if required, before then
sending a notification.
Page Visibility API - Web APIs
these may include: most browsers stop
sending requestanimationframe() callbacks to background tabs or hidden <iframe>s in order to improve performance and battery life.
PaymentRequest.onshippingaddresschange - Web APIs
to make sure an updated address is included when
sending payment information to the server, you should add event listeners for a paymentrequest object after instantiation, but before the call to show().
PaymentRequest.onshippingoptionchange - Web APIs
to make sure an updated option is included when
sending payment information to the server, you should add event listeners for a paymentrequest object after instantiation, but before the call to show().
PaymentRequest.show() - Web APIs
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.
Payment processing concepts - Web APIs
for instance, safari has integrated support for apple pay, so the apple pay payment handler uses this to ensure that apple pay can be used to pay the merchant by
sending merchantvalidation to the client, instructing it to fetch the server's validation data and deliver it to the payment handler by calling complete().
Web Push API Notifications best practices - Web APIs
every push notification should be useful and time-sensitive, and the user should always be asked for permission before
sending the first one, and be offered an easy way to opt out of getting more in the future.
RTCDTMFSender: tonechange event - Web APIs
the tonechange event is sent to an rtcdtmfsender by the webrtc api to indicate when dtmf tones previously queued for
sending (by calling rtcdtmfsender.insertdtmf()) begin and end.
RTCDataChannel.bufferedAmount - Web APIs
the user agent may implement the process of actually
sending data in any way it chooses; this may be done periodically during the event loop or truly asynchronously.
RTCDataChannel.onbufferedamountlow - Web APIs
example this example responds to the bufferedamountlow event by fetching up to 64kb of a file represented by an object source and calling rtcdatachannel.send() to queue up the retrieved data for
sending on the data channel.
RTCDataChannel.send() - Web APIs
exceptions invalidstateerror since the data channel uses a separate transport channel from the media content, it must establish its own connection; if it hasn't finished doing so (that is, its readystate is "connecting"), this error occurs without
sending or buffering the data.
RTCIceCandidatePairStats - Web APIs
totalroundtriptime optional a floating-point value indicating the total time, in seconds, that has elapsed between
sending stun requests and receiving responses to them, for all such requests made to date on this candidate pair.
RTCIceTransport - Web APIs
these are the same candidates which have already been sent to the remote peer by
sending an icecandidate event to the rtcpeerconnection for transmission.
RTCInboundRtpStreamStats.qpSum - Web APIs
you can, for example, use the value of rtcreceivedrtpstreamstats.framesdecoded if receiving the media or rtcsentrtpstreamstats.framesencoded if
sending it to get the number of frames handled so far, and compute an average from there.
RTCInboundRtpStreamStats.remoteId - Web APIs
the remoteid property of the rtcinboundrtpstreamstats dictionary specifies the id of the rtcremoteoutboundrtpstreamstats object representing the remote peer's rtcrtpsender which is
sending the media to the local peer.
RTCOutboundRtpStreamStats.firCount - Web APIs
a fir packet is sent when the receiver finds that it has fallen behind and needs to skip frames in order to catch up; the sender should respond by
sending a full frame instead of a delta frame.
RTCOutboundRtpStreamStats.remoteId - Web APIs
the remoteid property of the rtcoutboundrtpstreamstats dictionary specifies the id of the rtcremoteinboundrtpstreamstats object representing the remote peer's rtcrtpreceiver which is
sending the media to the local peer for this ssrc.
RTCPeerConnection.addIceCandidate() - Web APIs
out of interest, end-of-candidates may be manually indicated as follows: pc.addicecandidate({candidate:''}); however, in most cases you won't need to look for this explicitly, since the events driving the rtcpeerconnection will deal with it for you,
sending the appropriate events.
RTCPeerConnection.canTrickleIceCandidates - Web APIs
if trickling isn't supported, or you aren't able to tell, you can check for a falsy value for this property and then wait until the value of icegatheringstate changes to "completed" before creating and
sending the initial offer.
RTCPeerConnection: icecandidate event - Web APIs
this signal exists for backward compatibility purposes and does not need to be delivered onward to the remote peer (which is why the code snippet above checks to see if event.candidate is null prior to
sending the candidate along.
RTCPeerConnection.onnegotiationneeded - Web APIs
example this example, derived from the example in signaling and video calling, establishes a handler for negotiationneeded events to handle creating an offer, configuring the local end of the connection, and
sending the offer to the remote peer.
RTCPeerConnection.removeTrack() - Web APIs
the rtcpeerconnection.removetrack() method tells the local end of the connection to stop
sending media from the specified track, without actually removing the corresponding rtcrtpsender from the list of senders as reported by rtcpeerconnection.getsenders().
RTCPeerConnection.sctp - Web APIs
example var pc = new rtcpeerconnection(); var channel = pc.createdatachannel("mydata"); channel.onopen = function(event) { channel.send('
sending a message'); } channel.onmessage = function(event) { console.log(event.data); } // determine the largest message size that can be sent var sctp = pc.sctp; var maxmessagesize = sctp.maxmessagesize; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcpeerconnection.sctp' in that specification.
RTCPeerConnectionIceErrorEvent - Web APIs
the rtcpeerconnectioniceerrorevent interface—based upon the event interface—provides details pertaining to an ice error announced by
sending an icecandidateerror event to the rtcpeerconnection object.
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
finding paired statistics each statistics record of type remote-outbound-rtp (describing a remote peer's statistics about
sending data to the local peer) has a corresponding record of type inbound-rtp which describes the local peer's perspective on the same data being moved between the two peers.
RTCRtpEncodingParameters - Web APIs
codecpayloadtype when describing a codec for an rtcrtpsender, codecpayloadtype is a single 8-bit byte (or octet) specifying the codec to use for
sending the stream; the value matches one from the owning rtcrtpparameters object's codecs parameter.
RTCRtpSendParameters.encodings - Web APIs
codecpayloadtype when describing a codec for an rtcrtpsender, codecpayloadtype is a single 8-bit byte (or octet) specifying the codec to use for
sending the stream; the value matches one from the owning rtcrtpparameters object's codecs parameter.
RTCRtpSender - Web APIs
static methods rtcrtpsender.getcapabilities() returns an rtcrtpcapabilities object describing the system's capabilities for
sending a specified kind of media data.
RTCRtpStreamStats.qpSum - Web APIs
you can, for example, use the value of rtcreceivedrtpstreamstats.framesdecoded if receiving the media or rtcsentrtpstreamstats.framesencoded if
sending it to get the number of frames handled so far, and compute an average from there.
RTCRtpTransceiver.sender - Web APIs
the read-only sender property of webrtc's rtcrtptransceiver interface indicates the rtcrtpsender responsible for encoding and
sending outgoing media data for the transceiver's stream.
ReadableStream - Web APIs
if (done) { // tell the browser that we have finished
sending data controller.close(); return; } // get the data and send it to the browser via the controller controller.enqueue(value); push(); }); }; push(); } }); return new response(stream, { headers: { "content-type": "text/html" } }); }); specifications specification status comment ...
ReadableStreamDefaultReader - Web APIs
if (done) { // tell the browser that we have finished
sending data controller.close(); return; } // get the data and send it to the browser via the controller controller.enqueue(value); push(); }); }; push(); } }); return new response(stream, { headers: { "content-type": "text/html" } }); }); specifications specification status comment ...
Report - Web APIs
by
sending requests to the endpoints defined via the report-to http header.
ServiceWorkerMessageEvent.data - Web APIs
examples when the following code is used inside the main thread to set up a message channel between it and a service worker for
sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
ServiceWorkerMessageEvent.lastEventId - Web APIs
examples when the following code is used inside the main thread to set up a message channel between it and a service worker for
sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
ServiceWorkerMessageEvent.origin - Web APIs
examples when the following code is used inside the main thread to set up a message channel between it and a service worker for
sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
ServiceWorkerMessageEvent.ports - Web APIs
examples when the following code is used inside the main thread to set up a message channel between it and a service worker for
sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
ServiceWorkerMessageEvent.source - Web APIs
examples when the following code is used inside the main thread to set up a message channel between it and a service worker for
sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
ServiceWorkerMessageEvent - Web APIs
examples when the following code is used inside the main thread to set up a message channel between it and a service worker for
sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
Streams API concepts - Web APIs
if it is too low, our readablestream can tell its underlying source to stop
sending data, and we backpressure along the stream chain.
WebGL best practices - Web APIs
flush when expecting results (like queries or rendering frame completion) flush tells the implementation to push all pending commands out for execution, flushing them out of the queue, instead of waiting for more commands to enqueue before
sending for execution.
WebSocket - Web APIs
the websocket object provides the api for creating and managing a websocket connection to a server, as well as for
sending and receiving data on the connection.
Window.open() - Web APIs
noreferrer if this feature is set, the request to load the content located at the specified url will be loaded with the request's referrer set to noreferrer; this prevents the request from
sending the url of the page that initiated the request to the server where the request is sent.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
polyfill if you need to pass one or more arguments to your callback function, but need it to work in browsers which don't support
sending additional arguments using either settimeout() or setinterval() (e.g., internet explorer 9 and below), you can include this polyfill to enable the html5 standard arguments-passing functionality.
XMLHttpRequest.responseType - Web APIs
when setting responsetype to a particular value, the author should make sure that the server is actually
sending a response compatible with that format.
Shapes From Images - CSS: Cascading Style Sheets
an image hosted on the same domain as your site should work, however if your images are hosted on a different domain such as on a cdn you should ensure that they are
sending the correct headers to enable them to be used for shapes.
Ajax - Developer guides
sending and receiving binary data the responsetype property of the xmlhttprequest object can be set to change the expected response type from the server.
XHTML - Developer guides
the problems are described in more details in the following articles: beware of xhtml by david hammond
sending xhtml as text/html considered harmful by ian hickson xhtml's dirty little secret by mark pilgrim xhtml - what's the point?
Developer guides
it's primarily intended for
sending form data, but can be used independently from forms to transmit keyed data.
<input type="hidden"> - HTML: Hypertext Markup Language
rm { width: 500px; } div { display: flex; margin-bottom: 10px; } label { flex: 2; line-height: 2; text-align: right; padding-right: 20px; } input, textarea { flex: 7; font-family: sans-serif; font-size: 1.1rem; padding: 5px; } textarea { height: 60px; } the server would set the value of the hidden input with the id "postid" to the id of the post in its database before
sending the form to the user's browser and would use that information when the form is returned to know which database record to update with modified information.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
ed for accessibility autocomplete all hint for form autofill feature autofocus all automatically focus the form control when the page is loaded capture file media capture input method in file upload controls checked radio, checkbox whether the command or control is checked dirname text, search name of form field to use for
sending the element's directionality in form submission disabled all whether the form control is disabled form all associates the control with a form element formaction image, submit url to use for form submission formenctype image, submit form data set encoding type to use for form submission formmethod image, submit http method ...
Evolution of HTTP - HTTP
instead of
sending http over a basic tcp/ip stack, netscape communications created an additional encrypted transmission layer on top of it: ssl.
HTTP caching - HTTP
if so, the server returns a 304 (not modified) header without
sending the body of the requested resource, saving some bandwidth.
Using Feature Policy - HTTP
feature-policy: <feature name> <allowlist of origin(s)> for example, to block all content from using the geolocation api across your site: feature-policy: geolocation 'none' several features can be controlled at the same time by
sending the http header with a semicolon-separated list of policy directives, or by
sending a separate header for each policy.
Authorization - HTTP
this method is equally secure as
sending the credentials in clear text (base64 is a reversible encoding).
Cache-Control - HTTP
examples preventing caching to disable caching of a resource, you can send the following response header: good: cache-control: no-store bad: cache-control: private,no-cache,no-store,max-age=0,must-revalidate,pre-check=0,post-check=0 caching static assets for the files in the application that will not change, you can usually add aggressive caching by
sending the response header below.
Clear-Site-Data - HTTP
you can achieve that by adding the clear-site-data header when
sending the page confirming that logging out from the site has been accomplished successfully (https://example.com/logout, for example): clear-site-data: "cache", "cookies", "storage", "executioncontexts" clearing cookies if this header is delivered with the response at https://example.com/clear-cookies, all cookies on the same domain https://example.com and any subdomains (like https://stage.example.
Content-Location - HTTP
indicating the url of a transaction's result say you have a <form> for
sending money to another user of a site.
Expect - HTTP
examples large message body a client sends a request with a expect header and waits for the server to respond before
sending the message body.
From - HTTP
a crawler), the from header should be sent, so you can be contacted if problems occur on servers, such as if the robot is
sending excessive, unwanted, or invalid requests.
Proxy-Authorization - HTTP
this method is equally secure as
sending the credentials in clear text (base64 is a reversible encoding).
HTTP headers - HTTP
other accept-push-policy a client can express the desired push policy for a request by
sending an accept-push-policy header field in the request.
PUT - HTTP
yes cacheable no allowed in html forms no syntax put /new.html http/1.1 example request put /new.html http/1.1 host: example.com content-type: text/html content-length: 16 <p>new file</p> responses if the target resource does not have a current representation and the put request successfully creates one, then the origin server must inform the user agent by
sending a 201 (created) response.
Protocol upgrade mechanism - HTTP
right after
sending the 101 status code, the server can begin speaking the new protocol, performing any additional protocol-specific handshakes as necessary.
100 Continue - HTTP
to have a server check the request's headers, a client must send expect: 100-continue as a header in its initial request and receive a 100 continue status code in response before
sending the body.
411 Length Required - HTTP
note: by specification, when
sending data in a series of chunks, the content-length header is omitted and at the beginning of each chunk you need to add the length of the current chunk in hexadecimal format.
Generator.prototype.next() - JavaScript
ge = getpage(3, list); // generator { } page.next(); // object {value: (3) [1, 2, 3], done: false} page.next(); // object {value: (3) [4, 5, 6], done: false} page.next(); // object {value: (2) [7, 8], done: false} page.next(); // object {value: undefined, done: true}
sending values to the generator in this example, next is called with a value.
WebAssembly.Module - JavaScript
examples
sending a compiled module to a worker the following example (see our index-compile.html demo on github, and view it live also) compiles the loaded simple.wasm byte code using the webassembly.compilestreaming() method and then sends the resulting module instance to a worker using postmessage().