I have a simple form where people fill in some data. When pressed the submit button this data will be handelded in a php script, this takes some time (10 seconds). When the php script is finished it will give his result into a iframe.
Now I want a loading image on this iframe while the php script is running. So how can I trigger the loading image when the submit button is pressed and that the image will be go away when the iframe is fully loaded.
Here is a Jsfiddle of my form: http://jsfiddle.net/#&togetherjs=oFhTbTvn2d
Has someone a Jsfiddle example of something that looks like I want?
Thanks in advance!