Find & Share Quotes with Friends
“function imgLoad(url) { return new Promise(function(resolve, reject) { var request = new XMLHttpRequest(); request.open('GET', url); request.responseType = 'blob'; request.onload = function() { if (request.status === 200) { resolve(request.response); } else { reject(Error('Image didn\'t load successfully; error code:' + request.statusText)); } }; request.onerror = function() { reject(Error('There was a network error.')); }; request.send(); }); }”
―
Mastering JavaScript: A Complete Programming Guide Including jQuery, AJAX, Web Design, Scripting and Mobile Application Development
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
Mastering JavaScript: A Complete Programming Guide Including jQuery, AJAX, Web Design, Scripting and Mobile Application Development
by
Michael B. White10 ratings, average rating, 2 reviews
Browse By Tag
- love (102266)
- life (80836)
- inspirational (77406)
- humor (45128)
- philosophy (31869)
- inspirational-quotes (28706)
- god (27111)
- wisdom (25144)
- romance (24908)
- truth (24895)
- poetry (24645)
- life-lessons (22999)
- quotes (21500)
- death (20992)
- happiness (19041)
- hope (18909)
- faith (18694)
- inspiration (18060)
- spirituality (16100)
- motivational (16094)
- relationships (16086)
- religion (15586)
- life-quotes (15320)
- writing (15182)
- love-quotes (14952)
- success (14248)
- motivation (14106)
- time (13047)
- science (12325)
- motivational-quotes (12168)
