All internal references use the Flow namespace.
| The Remote Namespace | All internal references use the Flow namespace. |
| Version | 1.0 |
| Remote | These functions are bound to elements. |
| Properties | |
| XMLHttpRequest | |
| HttpRequest | A non-standard property with standards-compliant behavior. |
1.0
Flow.js.
These functions are bound to elements.
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();| Properties | |
| XMLHttpRequest | |
| HttpRequest | A non-standard property with standards-compliant behavior. |
| type | the type of event to bind. |
| handler | the event to bind. |
| useCapture | turn event bubbling on/off. |
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);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.
| type | the type of event to bind. |
| handler | the event to bind. |
| useCapture | turn event bubbling on/off. |
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();