Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = {
- url: '/users/test', // tried full URL
- handleAs: 'json'
- };
- var d = dojo.xhrGet(xhr);
- // This will work in chrome
- var dXhr = d.ioArgs.xhr;
- dXhr.onreadystatechange=function() {
- if (dXhr.readyState==4 && dXhr.status==200) {
- console.log('Hello World');
- }
- };
- // this will not work
- dojo.when(xhr,function(r) {
- console.log('d');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement