Can this code be converted to jQuery code? For example by using: jQuery.get(). Although I don't think there is an responsetype arraybuffer.
var request = new XMLHttpRequest();
request.open("GET", url, true);
request.responseType = "arraybuffer";
request.onload = function() {
// do stuff
}
request.send();
EDIT
I'm trying to make a Chrome HTML5 Web Audio plugin for jQuery. So I'm trying to jQuerify where possible. Check out what I try to convert @ http://pieterhordijk.com/sandbox/html5-audio-api/webkit-audiocontext-interface/adding-a-basic-control
Word of caution don't click the play button with the volume high as you can only stop it for now with a refresh of the page :)
onloadshould readonreadystatechange.responseTypeis only supported from FF >= 6.onloadis not a property ofXMLHttpRequestobjects.onload?