Debt Consolidation - Debt Consolidation - Submit articles - Web Hosting - Debt Consolidation

PDA

View Full Version : Animated gif after clicking submit


Sipifi
Feb 26th 2009, 6:59 am
Hey all,

I've been searching and searching but only found solutions that didn't work for me or were totaly not related to what i was looking for (is google getting worse with all those product selling spam sites? :()

Anyway! I'd love to show a "loading" image when someone clicks submit on a uploading form i have and my best bet is to use javascript for it, but i'm very new to that. Where do i start?

For example: user browses for a file, then clicks submit and then the loading image shows up untill the page gets redirected to another.

Hope someone can help me out :)

/Sipifi

manjifera
Feb 26th 2009, 7:20 am
<script>
function sub()
{
document.getElelmentById("myloadng").innerHTML = "<img src='image link here'>";
}
<script>


<div id="myloadng"></div>

Sipifi
Feb 26th 2009, 9:12 am
<script>
function sub()
{
document.getElelmentById("myloadng").innerHTML = "<img src='image link here'>";
}
<script>


<div id="myloadng"></div>

How and where would i add this? I know the javascript has to go in the head section, but do i add the div around my form or just where i want to get the image to show? I tried the last method and it did nothing so.

Sipifi
Feb 27th 2009, 4:57 am
Anyone have an idea?