Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax(
- {
- url: link,
- type:'HEAD',
- timeout: 2000,
- error: function(request, status, message)
- {
- console.log('ajax error');
- console.log(request);
- console.log(status);
- console.log(message);
- openPopUp("There was an error accessing the image. It can be because the address is invalid, "+
- "or because the server where the image is stored is not allowing direct access to the images.");
- },
- success: function()
- {
- // More stuff here
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement