Page MenuHomeGitPull.it
Diviner All Atoms
    • Select an element by its "id" attribute, like ##document.getElementById()##. For example:
    • Function
    • File
    • Method
    • Synchronize multiple tabs over LocalStorage.
    • Class
    • File
    • Loads one or many static resources (JavaScript or CSS) and executes a callback once these resources have finished loading.
    • Method
    • Determine the size of the document, including any area outside the current viewport which the user would need to scroll in order to see, by building a new vector where the 'x' component corresponds to the document width in pixels and the 'y' component corresponds to the document height in pixels.
    • Method
    • Change a vector's x and y coordinates by adding numbers to them, or adding the coordinates of another vector. For example:
    • Method
    • Construct a vector, either from explicit coordinates or from a node or event. You can pass two Numbers to construct an explicit vector:
    • Method
    • Query and update positions and dimensions of nodes (and other things) within within a document. Each vector has two elements, 'x' and 'y', which usually represent width/height ('dimension vector') or left/top ('position vector').
    • Class
    • Convenience function that returns a @{class:JX.Vector} instance. This allows you to concisely write things like:
    • Function
    • File
    • Execute previously defined Javelin behaviors, running the glue code they contain to glue stuff together. See @{article:Concepts: Behaviors} for more information on Javelin behaviors.
    • Function
    • Define a Javelin behavior, which holds glue code in a structured way. See @{article:Concepts: Behaviors} for a detailed description of Javelin behaviors.
    • Function
    • File
    • Method
    • Method
    • File
    • Sink into a hopeless, cold mire of limitless depth from which there is no escape.
    • Class
    • File
    • Method
    • Make basic AJAX XMLHTTPRequests.
    • Class
    • File
    • Update the control to either show or hide the placeholder text as necessary.
    • Method
    • Construct a new Typeahead on some "hardpoint". At a minimum, the hardpoint should be a ##<div>## with "position: relative;" wrapped around a text ##<input>##. The typeahead's dropdown suggestions will be appended to the hardpoint in the DOM. Basically, this is the bare minimum requirement:
    • Method
    • A typeahead is a UI component similar to a text input, except that it suggests some set of results (like friends' names, common searches, or repository paths) as the user types them. Familiar examples of this UI include Google Suggest, the Facebook search box, and OS X's Spotlight feature.
    • Class
    • File
    • Method
    • File
    • Method
    • Method
    • Typeahead source that uses static data passed to the constructor. For larger datasets, use @{class:JX.TypeaheadPreloadedSource} or @{class:JX.TypeaheadOnDemandSource} to improve performance.
    • Class
    • File
    • Auxiliary data to pass along when sending the query for server results.
    • Method
    • Method
    • File
    • Method
    • Method
    • Simple datasource that loads all possible results from a single call to a URI. This is appropriate if the total data size is small (up to perhaps a few thousand items). If you have more items so you can't ship them down to the client in one response, use @{class:JX.TypeaheadOnDemandSource}.
    • Class
    • File
    • Method
    • File
    • Method
    • File
    • Method
    • Method
    • A tokenizer is a UI component similar to a text input, except that it allows the user to input a list of items ("tokens"), generally from a fixed set of results. A familiar example of this UI is the "To:" field of most email clients, where the control autocompletes addresses from the user's address book.
    • Class
    • File
    • Start new requests if we have slots free for them.
    • Method
    • Method
    • Route requests. Primarily, this class provides a quality-of-service priority queue so large numbers of background loading tasks don't block interactive requests.
    • Class
    • File
    • JX.History provides a stable interface for managing the browser's history stack. Whenever the history stack mutates, the "history:change" event is invoked via JX.Stratcom.
    • Class
    • File
    • Redirect the browser to another page by changing the window location. If the URI is empty, reloads the current page.
    • Method
    • Construct a URI
    • Method
    • Method
    • Convert a string URI into a maleable object.
    • Class
    • Handy convenience function that returns a @{class:JX.URI} instance. This allows you to write things like:
    • Function
    • File
    • Called when the connection is closed.
    • Method
    • Method
    • Wraps a WebSocket.
    • Class
    • File
    • Method
    • Setting cookies involves setting up a cookie object which is eventually written.
    • Method
    • File
    • On initialization, the browser-dependent viewport root is determined and stored.
    • Method
    • Method
    • File
    • Listen for events emitted by this object instance. You can also use the static flavor of this method to listen to events emitted by any instance of this object.
    • Method
    • Listen for events on given paths. Specify one or more event types, and zero or more paths to filter on. If you don't specify a path, you will receive all events of the given type:
    • Method
    • This is not a real class, but @{function:JX.install} provides several methods which exist on all Javelin classes. This class documents those methods.
    • Class
    • File
    • Register a callback for invocation after DOMContentReady.
    • Function
    • File
    • Method
    • Method
    • File
    • Method
    • File