¡@

Home 

2014/10/16 ¤W¤È 12:04:29

jquery Programming Glossary: isvalidimageurl

Is this a valid test to check if a URL refers to an Image in JS/jQuery

http://stackoverflow.com/questions/4669111/is-this-a-valid-test-to-check-if-a-url-refers-to-an-image-in-js-jquery

I tried this http jsfiddle.net wp7Ed 2 function function IsValidImageUrl url img src url error function return false load function.. function return false load function return true alert IsValidImageUrl http goo.gl GWtGo alert IsValidImageUrl http error but of course.. return true alert IsValidImageUrl http goo.gl GWtGo alert IsValidImageUrl http error but of course it fails... how can I return from an..

Is this a valid test to check if a URL refers to an Image in JS/jQuery

http://stackoverflow.com/questions/4669111/is-this-a-valid-test-to-check-if-a-url-refers-to-an-image-in-js-jquery

will be how can I encapsulate this logic into a function. I tried this http jsfiddle.net wp7Ed 2 function function IsValidImageUrl url img src url error function return false load function return true alert IsValidImageUrl http goo.gl GWtGo alert.. 2 function function IsValidImageUrl url img src url error function return false load function return true alert IsValidImageUrl http goo.gl GWtGo alert IsValidImageUrl http error but of course it fails... how can I return from an internl event handler.. img src url error function return false load function return true alert IsValidImageUrl http goo.gl GWtGo alert IsValidImageUrl http error but of course it fails... how can I return from an internl event handler Or how can I implement this javascript..