Labs/Jetpack/JEP/28: Difference between revisions

Jump to navigation Jump to search
→‎Modules: Added docs for xhr
(added url.fromFilename() docs)
(→‎Modules: Added docs for xhr)
Line 166: Line 166:


The module's interface is the same as that specified in [[Labs/Jetpack/JEP/25|JEP 25]].
The module's interface is the same as that specified in [[Labs/Jetpack/JEP/25|JEP 25]].
=== <tt>xhr</tt> ===
The <tt>xhr</tt> module provides access to <tt>XMLHttpRequest</tt> functionality, also known as AJAX.
<tt>xhr.'''XMLHttpRequest'''()</tt>
Creates an <tt>XMLHttpRequest</tt>. For more information, see [https://developer.mozilla.org/En/Using_XMLHttpRequest Using XMLHttpRequest].
<tt>xhr.'''getRequestCount'''()</tt>
Returns the number of <tt>XMLHttpRequest</tt> objects that are alive (i.e., currently active or about to be).


=== <tt>observer-service</tt> ===
=== <tt>observer-service</tt> ===
874

edits

Navigation menu