chasethemetal Posted August 17, 2011 Share Posted August 17, 2011 Hey all,I am having difficulties figuring out how to create a script that will load and run my 'upload gif' ONLY when a file is being uploaded... I have a script that will run a certain gif when the page is loading, you know like a loading your profile please wait and it kills after all elements of the page have loaded... But what I need assistance on, is making a script that will trigger the GIF in a DIV only during an upload...Any pointers or guides would be great. I am pretty new to javascript, if anyone can think of a way to do this in PHP I am comfortable with that. Thanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 17, 2011 Share Posted August 17, 2011 Have the submit handler for the form add the image to the page. You can either just leave it there and let the page refresh when the form finishes submitting, or if you're doing it through ajax then you can use the callback to remove the image. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.