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 :)
$.get(url, function (data) {
// do useful things with data
});
Adjust parameters as you like, see jQuery.get().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With