Images are protected by 401 Error - user can't access them manipulating JS.
My site is dynamicly changing, sets of images are changing during visit. My script is too complicated to be always right. Sometimes there can be a bug - requesting wrong image.
Is there any way to ignore these images and go to next?
(Be sure that I made all my best to solve this problem by another solution - this is my last chance)
User Profile
Collapse
-
Thank you so much for answer
1) Never mind. I changed some things and it works perfectly.
2) I can't do it server-side - that's the point. However, server does know which images are available for current user. If he request wrong image he gets 401 error. Privileges are given dynamicly, are diffrent according to user status, actual time etc. It must be JS.Leave a comment:
-
Loading images in the background
Hello everyone ;)
I would like to load some images using JS.
My code:
Simply task,...Code:var img=new Image(); img.onload = function() {f1()}; img.onerror = function() {f2()}; img.src='http://example.com/image.gif'; sett = setTimeout(function() {f3()}, 100000); //f3 contains not interesting code and: img = null; clearTimeout(sett);
No activity results to display
Show More
Leave a comment: