jQuery AJAX with multiple URLs

Posted by Fernando Valente on Stack Overflow See other posts from Stack Overflow or by Fernando Valente
Published on 2010-06-01T05:03:13Z Indexed on 2010/06/01 5:13 UTC
Read the original article Hit count: 257

Filed under:
|
|
|
|

I'm using jQuery to load the images before displaying them. The problem is that I don't know how many images are going to be loaded. The page loads the image paths from a XML file. I'm using this:

$.ajax({
    url: 'images/BYLINE/1.png',
    dataType: "image/png",
    success: function(data) {
        alert('psil');
    },
    error: function(XMLHttpRequest, textStatus, errorThrown) {
        alert(textStatus);
    }
});

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery