When my page loads I have an empty image, after a user inputs the correct query string I parse it and return the id/location of the image using AJAX.
<a class="bigImg rght" style="width:258px;">
<img src="" alt="Slide" width="298" height="224" /></a>
Then I append the new id's into the img src field, but what it is not doing is loading the new image in.
parent_img.attr("src","http://www.mysite.com/files/"
+(data.offset_num)+"/"+(data.offset_id)).fadeIn(1000);
So now my html looks like this:
<a class="bigImg rght" style="width:258px;">
<img src="http://www.mysite.com/files/4823413/008234" alt="Slide" width="298" height="224" /></a>
which is the correct location, but it's not refreshing the image, how can I force it to do so? so the new image is loaded in.