The Remote Namespace

All internal references use the Flow namespace.

Summary
The Remote NamespaceAll internal references use the Flow namespace.
Version1.1.1
RemoteThese functions are bound to elements.
Properties
XMLHttpRequest
HttpRequestA non-standard property with standards-compliant behavior.

Version

1.1.1

License

Requires

Flow.js.

Remote

These functions are bound to elements.

Example

var foo = document.getElementById("foo");
var ani = new Flow.Animate({
    node : foo,
    from : {
        height : 10,
        width : 10
    },
    to : {
        height : 200,
        width : 200
    },
    tween : "Expo.inout"
}, 1).start();
Summary
Properties
XMLHttpRequest
HttpRequestA non-standard property with standards-compliant behavior.

Properties

XMLHttpRequest

This is the standard XHR call.  However, this implementation has a major drawback

  • Safari 2 and IE 7 do not support overwriting XMLHttpRequest.  As such, this functionality is limited to the implementation of those browsers (no flags).

Parameters

typethe type of event to bind.
handlerthe event to bind.
useCaptureturn event bubbling on/off.

Example

var req = new XMLHttpRequest();
req.open("GET", "foo.xml", true);
req.onreadystatechange = function() {
    if (req.readyState == 4) {
        if (req.status == 200 || req.status == 304) {
            console.log(req.responseXML); // req = XHR object
        } else {
            console.log(req.status); // 404'd
        }
    }
}
req.send(null);

HttpRequest

A non-standard property with standards-compliant behavior.  Use HttpRequest if you’d like all functionality detailed in the specs.  Also contains several helper functions for a drastic reduction in code.

Parameters

typethe type of event to bind.
handlerthe event to bind.
useCaptureturn event bubbling on/off.

Example

var req = new HttpRequest();
req.open("GET", "foo.xml", true);
req.onsuccess = function() {
    console.log(this.responseXML); // this = XHR object
}
req.onerror = function() {
    console.log(this.status); // 404'd
}
req.send();