I have a page in my MVC 3 project that pulls a report from reporting services, the result of which is displayed in an :
<img src="@Url.Action("ActionName", "Controller",...etc
This image is rendered at the bottom of the page. The Action returns a FileContentResult and can take a few seconds to display.
What I want to do is display a spinner whilst the image is being returned. The problem I have (and I've searched a ton about this) is that it's not ajax, not using JQuery, it's just effectively a plain old URL that the browser uses to retrieve the image.
So the question is, how do I display a spinner whilst it's waiting? Is this even possible? Or will I have to use JQuery/Ajax to load the image somewhere else and then display it?