Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $.ajax(
  2. {
  3. url: link,
  4. type:'HEAD',
  5. timeout: 2000,
  6. error: function(request, status, message)
  7. {
  8. console.log('ajax error');
  9. console.log(request);
  10. console.log(status);
  11. console.log(message);
  12. openPopUp("There was an error accessing the image. It can be because the address is invalid, "+
  13. "or because the server where the image is stored is not allowing direct access to the images.");
  14. },
  15. success: function()
  16. {
  17. // More stuff here
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement