I am using this code to load an image and display it within a dialog box.
<div id="image_preview" title="Client Photo Preview">
<p><img src="" alt="client image" id="client_image_preview" /></p>
</div>
$("#client_image_preview").attr("src", imagelocation);
$('#image_preview').dialog({
height: 'auto',
width: 'auto',
modal: true,
dialogClass: 'titleless',
buttons: { "CLOSE": function() { $(this).dialog("destroy"); } }
});
Is there a method in jQuery to display a loading gif while the image is loading?
Best regards,