Return to Snippet

Revision: 35069
at November 2, 2010 02:12 by thefricky


Initial Code
$.ajax({
    url:'http://www.example.com/somefile.ext',
    type:'HEAD',
    error:
        function(){
            //do something depressing
        },
    success:
        function(){
            //do something cheerful :)
        }
});

Initial URL
http://www.ambitionlab.com/how-to-check-if-a-file-exists-using-jquery-2010-01-06

Initial Description
Nice jquery script to check if a file exists, written by ambitionlab

Initial Title
Check  if a File Exists

Initial Tags
ajax, jquery

Initial Language
jQuery