jquery.get() error 404 - how get url of the file that was not found? -
i have following code:
(var = 0; < file_names.length; ++i) { promises.push(file_names[i]); promises.push(jquery.get(images_path + file_names[i]), null, null, "text")); }
sometime file doesn't exist or may other error can happen. in case of error 404 error text.
{"readystate":4,"responsetext":"<!doctype html><title>404 not found</title><h1 style=\"text-align: center\">404 not found</h1><hr/><p style=\"text-align: center\">pycharm community edition 5.0.3</p>","status":404,"statustext":"not found"}
how can know wich file not found? i'd print user info. thanks!
when 404 returned, actual file file_names[i]
should contain file name.
Comments
Post a Comment