/ Published in: jQuery

Nice jquery script to check if a file exists, written by ambitionlab
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.ajax({ url:'http://www.example.com/somefile.ext', type:'HEAD', error: function(){ //do something depressing }, success: function(){ //do something cheerful :) } });
URL: http://www.ambitionlab.com/how-to-check-if-a-file-exists-using-jquery-2010-01-06
Comments
