I have server software running for templates.
When the user fills in the form and clicks an update button the template is updated on the server and the preview is then updated in the browser window.
The update button uses javascript and what I need is for a loader gif to appear while the server is generating the new template.
The page also uses prototype-1.6.0.3 and scriptaculos
Doing this for a normal page load is simple but the page is not reloading, it's the template within in a div.