
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.84 KB | hits: 9 | expires: Never
How to stop browser loading an image or disconnect to a host?
jQuery(window).bind("load", function() {
jQuery('#fbProfilePicture').attr("src","http://graph.facebook.com/100001225080368/picture");
setTimeout(function(){
//my code
if (true)
{
//how to disconnect to facebook here.
}
else
{
//do something
}
},5000);
});
jQuery(window).bind("load", function() {
var loaded = false;
jQuery('#fbProfilePicture').load(function() {
loaded = true;
});
jQuery('#fbProfilePicture').attr("src", "http://graph.facebook.com/100001225080368/picture");
setTimeout(function() {
//my code
if (loaded) {
} else {
$('#fbProfilePicture').attr('src', '');
}
}, 5000);
});