|
|
@ -88,7 +88,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { |
|
|
|
.error(function(jqXHR, textStatus, errorThrown) { |
|
|
|
.error(function(jqXHR, textStatus, errorThrown) { |
|
|
|
trace("TWITTER error"); |
|
|
|
trace("TWITTER error"); |
|
|
|
trace("TWITTER ERROR: " + textStatus + " " + jqXHR.responseText); |
|
|
|
trace("TWITTER ERROR: " + textStatus + " " + jqXHR.responseText); |
|
|
|
VMM.attachElement("#"+tweet.id, "<p>ERROR LOADING TWEET " + tweet.mid + "</p>" ); |
|
|
|
VMM.attachElement("#"+tweet.id, VMM.MediaElement.loadingmessage("ERROR LOADING TWEET " + tweet.mid) ); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.success(function(d) { |
|
|
|
.success(function(d) { |
|
|
|
clearTimeout(twitter_timeout); |
|
|
|
clearTimeout(twitter_timeout); |
|
|
@ -114,7 +114,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { |
|
|
|
mes = "<p>Still waiting on Twitter. " + id + "</p>"; |
|
|
|
mes = "<p>Still waiting on Twitter. " + id + "</p>"; |
|
|
|
//mes = "<p>Tweet " + id + " was not found.</p>";
|
|
|
|
//mes = "<p>Tweet " + id + " was not found.</p>";
|
|
|
|
} |
|
|
|
} |
|
|
|
VMM.attachElement("#twitter_" + id, "<span class='messege'>" + mes + "</span>" ); |
|
|
|
VMM.attachElement("#twitter_" + id, VMM.MediaElement.loadingmessage(mes) ); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
@ -673,7 +673,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { |
|
|
|
.error(function(jqXHR, textStatus, errorThrown) { |
|
|
|
.error(function(jqXHR, textStatus, errorThrown) { |
|
|
|
var error_obj = VMM.parseJSON(jqXHR.responseText); |
|
|
|
var error_obj = VMM.parseJSON(jqXHR.responseText); |
|
|
|
trace(error_obj.error.message); |
|
|
|
trace(error_obj.error.message); |
|
|
|
VMM.attachElement("#googleplus_" + gplus.activity, "<p>ERROR LOADING GOOGLE+ </p><p>" + error_obj.error.message + "</p>"); |
|
|
|
VMM.attachElement("#googleplus_" + gplus.activity, VMM.MediaElement.loadingmessage("<p>ERROR LOADING GOOGLE+ </p><p>" + error_obj.error.message + "</p>")); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.success(function(d) { |
|
|
|
.success(function(d) { |
|
|
|
clearTimeout(googleplus_timeout); |
|
|
|
clearTimeout(googleplus_timeout); |
|
|
@ -700,7 +700,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { |
|
|
|
|
|
|
|
|
|
|
|
errorTimeOut: function(gplus) { |
|
|
|
errorTimeOut: function(gplus) { |
|
|
|
trace("GOOGLE+ JSON ERROR TIMEOUT " + gplus.activity); |
|
|
|
trace("GOOGLE+ JSON ERROR TIMEOUT " + gplus.activity); |
|
|
|
VMM.attachElement("#googleplus_" + gplus.activity, "<p>Still waiting on GOOGLE+ </p><p>" + gplus.activity + "</p>"); |
|
|
|
VMM.attachElement("#googleplus_" + gplus.activity, VMM.MediaElement.loadingmessage("<p>Still waiting on GOOGLE+ </p><p>" + gplus.activity + "</p>")); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -736,8 +736,8 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { |
|
|
|
|
|
|
|
|
|
|
|
flickr: { |
|
|
|
flickr: { |
|
|
|
|
|
|
|
|
|
|
|
get: function(mid, id) { |
|
|
|
get: function(mid, id, link) { |
|
|
|
var flick = {mid: mid, id: id}; |
|
|
|
var flick = {mid: mid, id: id, link:link}; |
|
|
|
VMM.master_config.flickr.que.push(flick); |
|
|
|
VMM.master_config.flickr.que.push(flick); |
|
|
|
VMM.master_config.flickr.active = true; |
|
|
|
VMM.master_config.flickr.active = true; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -779,6 +779,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { |
|
|
|
|
|
|
|
|
|
|
|
flickr_img_thumb = d.sizes.size[0].source; |
|
|
|
flickr_img_thumb = d.sizes.size[0].source; |
|
|
|
VMM.Lib.attr(flickr_large_id, "src", flickr_img_size); |
|
|
|
VMM.Lib.attr(flickr_large_id, "src", flickr_img_size); |
|
|
|
|
|
|
|
//VMM.attachElement(flickr_large_id, "<a href='" + flick.link + "' target='_blank'><img src='" + flickr_img_size + "'></a>");
|
|
|
|
VMM.attachElement(flickr_thumb_id, "<img src='" + flickr_img_thumb + "'>"); |
|
|
|
VMM.attachElement(flickr_thumb_id, "<img src='" + flickr_img_thumb + "'>"); |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
@ -931,7 +932,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { |
|
|
|
trace("WIKIPEDIA ERROR: " + textStatus + " " + jqXHR.responseText); |
|
|
|
trace("WIKIPEDIA ERROR: " + textStatus + " " + jqXHR.responseText); |
|
|
|
trace(errorThrown); |
|
|
|
trace(errorThrown); |
|
|
|
|
|
|
|
|
|
|
|
VMM.attachElement("#"+api_obj.id, "<span class='messege'>" + "<p>Wikipedia is not responding</p>" + "</span>" ); |
|
|
|
VMM.attachElement("#"+api_obj.id, VMM.MediaElement.loadingmessage("<p>Wikipedia is not responding</p>")); |
|
|
|
// TRY AGAIN?
|
|
|
|
// TRY AGAIN?
|
|
|
|
clearTimeout(callback_timeout); |
|
|
|
clearTimeout(callback_timeout); |
|
|
|
if (VMM.master_config.wikipedia.tries < 4) { |
|
|
|
if (VMM.master_config.wikipedia.tries < 4) { |
|
|
|